Home Home > GIT Browse > SLE12-SP5-UPDATE
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Wagner <dwagner@suse.de>2019-10-10 19:28:11 +0200
committerDaniel Wagner <dwagner@suse.de>2019-10-14 11:31:10 +0200
commit550a85965b14fe2d9a1824c673d9c8323f8681af (patch)
treee908548bb8a2668b8064cb04968f0234c4e5efbb
parente114912815a724bbad20094a9d4c20492fd25bfb (diff)
scsi: qla2xxx: remove redundant assignment to pointer host
(bsc#1143706 bsc#1082635 bsc#1123034).
-rw-r--r--patches.suse/scsi-qla2xxx-remove-redundant-assignment-to-pointer-.patch32
-rw-r--r--series.conf1
2 files changed, 33 insertions, 0 deletions
diff --git a/patches.suse/scsi-qla2xxx-remove-redundant-assignment-to-pointer-.patch b/patches.suse/scsi-qla2xxx-remove-redundant-assignment-to-pointer-.patch
new file mode 100644
index 0000000000..62bc967dfa
--- /dev/null
+++ b/patches.suse/scsi-qla2xxx-remove-redundant-assignment-to-pointer-.patch
@@ -0,0 +1,32 @@
+From: Colin Ian King <colin.king@canonical.com>
+Date: Thu, 5 Sep 2019 14:42:29 +0100
+Subject: scsi: qla2xxx: remove redundant assignment to pointer host
+Patch-mainline: Queued in subsystem maintainer repository
+Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi.git
+Git-commit: da6d2965dbdb480f091c42f54a09abe8056282e5
+References: bsc#1143706 bsc#1082635 bsc#1123034
+
+The pointer host is being initialized with a value that is never read and
+is being re-assigned a little later on. The assignment is redundant and
+hence can be removed.
+
+Link: https://lore.kernel.org/r/20190905134229.21194-1-colin.king@canonical.com
+Addresses-Coverity: ("Unused value")
+Signed-off-by: Colin Ian King <colin.king@canonical.com>
+Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
+Acked-by: Daniel Wagner <dwagner@suse.de>
+---
+ drivers/scsi/qla2xxx/qla_target.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/drivers/scsi/qla2xxx/qla_target.c
++++ b/drivers/scsi/qla2xxx/qla_target.c
+@@ -472,7 +472,7 @@ void qlt_response_pkt_all_vps(struct scs
+
+ case IMMED_NOTIFY_TYPE:
+ {
+- struct scsi_qla_host *host = vha;
++ struct scsi_qla_host *host;
+ struct imm_ntfy_from_isp *entry =
+ (struct imm_ntfy_from_isp *)pkt;
+
diff --git a/series.conf b/series.conf
index cf151c5cd4..8bef443d09 100644
--- a/series.conf
+++ b/series.conf
@@ -50072,6 +50072,7 @@
# jejb/scsi for-next
patches.suse/scsi-qla2xxx-Fix-Nport-ID-display-value.patch
patches.suse/scsi-qla2xxx-Remove-WARN_ON_ONCE-in-qla2x00_status_c.patch
+ patches.suse/scsi-qla2xxx-remove-redundant-assignment-to-pointer-.patch
# dhowells/linux-fs keys-uefi
patches.suse/0001-KEYS-Allow-unrestricted-boot-time-addition-of-keys-t.patch