Home Home > GIT Browse > SLE12-SP4-AZURE
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.de>2019-06-06 10:40:58 +0200
committerHannes Reinecke <hare@suse.de>2019-06-06 10:41:08 +0200
commitf5309b327f499cb678cdc4fcac55051d1cddd231 (patch)
treebeab2ea43dcbf4811b84fe3d158c61a7df7ef1c9
parent842a9457ac3cf1e7afbcf9533fd1d8fa483d1c21 (diff)
scsi: qla2xxx: Introduce a switch/case statement in
qlt_xmit_tm_rsp() (bsc#1137444).
-rw-r--r--patches.drivers/scsi-qla2xxx-Introduce-a-switch-case-statement-in-ql.patch54
-rw-r--r--series.conf1
2 files changed, 55 insertions, 0 deletions
diff --git a/patches.drivers/scsi-qla2xxx-Introduce-a-switch-case-statement-in-ql.patch b/patches.drivers/scsi-qla2xxx-Introduce-a-switch-case-statement-in-ql.patch
new file mode 100644
index 0000000000..5e555b21c2
--- /dev/null
+++ b/patches.drivers/scsi-qla2xxx-Introduce-a-switch-case-statement-in-ql.patch
@@ -0,0 +1,54 @@
+From: Bart Van Assche <bvanassche@acm.org>
+Date: Tue, 27 Nov 2018 15:04:54 -0800
+Subject: [PATCH] scsi: qla2xxx: Introduce a switch/case statement in
+ qlt_xmit_tm_rsp()
+Git-commit: 8837aa8bc093b29bd52ba55f98ad206d5418d240
+Patch-mainline: v5.0-rc1
+References: bsc#1137444
+
+This patch improves code readability but does not change any functionality.
+
+Cc: Himanshu Madhani <himanshu.madhani@cavium.com>
+Signed-off-by: Bart Van Assche <bvanassche@acm.org>
+Acked-by: Himanshu Madhani <himanshu.madhani@cavium.com>
+Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
+Acked-by: Hannes Reinecke <hare@suse.com>
+---
+ drivers/scsi/qla2xxx/qla_target.c | 14 +++++++-------
+ 1 file changed, 7 insertions(+), 7 deletions(-)
+
+diff --git a/drivers/scsi/qla2xxx/qla_target.c b/drivers/scsi/qla2xxx/qla_target.c
+index bceb8e882e7f..510337eac106 100644
+--- a/drivers/scsi/qla2xxx/qla_target.c
++++ b/drivers/scsi/qla2xxx/qla_target.c
+@@ -2379,20 +2379,20 @@ void qlt_xmit_tm_rsp(struct qla_tgt_mgmt_cmd *mcmd)
+ }
+
+ if (mcmd->flags == QLA24XX_MGMT_SEND_NACK) {
+- if (mcmd->orig_iocb.imm_ntfy.u.isp24.status_subcode ==
+- ELS_LOGO ||
+- mcmd->orig_iocb.imm_ntfy.u.isp24.status_subcode ==
+- ELS_PRLO ||
+- mcmd->orig_iocb.imm_ntfy.u.isp24.status_subcode ==
+- ELS_TPRLO) {
++ switch (mcmd->orig_iocb.imm_ntfy.u.isp24.status_subcode) {
++ case ELS_LOGO:
++ case ELS_PRLO:
++ case ELS_TPRLO:
+ ql_dbg(ql_dbg_disc, vha, 0x2106,
+ "TM response logo %phC status %#x state %#x",
+ mcmd->sess->port_name, mcmd->fc_tm_rsp,
+ mcmd->flags);
+ qlt_schedule_sess_for_deletion(mcmd->sess);
+- } else {
++ break;
++ default:
+ qlt_send_notify_ack(vha->hw->base_qpair,
+ &mcmd->orig_iocb.imm_ntfy, 0, 0, 0, 0, 0, 0);
++ break;
+ }
+ } else {
+ if (mcmd->orig_iocb.atio.u.raw.entry_type == ABTS_RECV_24XX) {
+--
+2.16.4
+
diff --git a/series.conf b/series.conf
index 96a6428218..5cbf7a0635 100644
--- a/series.conf
+++ b/series.conf
@@ -20672,6 +20672,7 @@
patches.drivers/scsi-qla2xxx-use-lower_32_bits-and-upper_32_bits-ins.patch
patches.fixes/scsi-target-add-emulate_pr-backstore-attr-to-toggle-.patch
patches.fixes/scsi-target-drop-unused-pi_prot_format-attribute-sto.patch
+ patches.drivers/scsi-qla2xxx-Introduce-a-switch-case-statement-in-ql.patch
patches.drivers/scsi-csiostor-remove-flush_scheduled_work
patches.arch/s390-scsi-zfcp-fix-posting-too-many-status-read-buffers.patch
patches.drivers/scsi-lpfc-Fix-panic-when-FW-log-buffsize-is-not-init.patch