summaryrefslogtreecommitdiff
path: root/drivers/scsi/qla4xxx/ql4_nx.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2020-12-04 19:18:10 +0000
committerMartin K. Petersen <martin.petersen@oracle.com>2020-12-09 11:34:17 -0500
commit3a5b9fa2cc5fc0ddd86f03e28947e8b410622148 (patch)
treee260b6e1c88738f499ae57447889cb0a661f7bf5 /drivers/scsi/qla4xxx/ql4_nx.c
parent8f525bc2a7b296cf24cfa7e5186bc32dd8e766aa (diff)
downloadlwn-3a5b9fa2cc5fc0ddd86f03e28947e8b410622148.tar.gz
lwn-3a5b9fa2cc5fc0ddd86f03e28947e8b410622148.zip
scsi: qla4xxx: Remove redundant assignment to variable rval
The variable rval is being initialized with a value that is never read and it is being updated later with a new value. The initialization is redundant and can be removed. Link: https://lore.kernel.org/r/20201204191810.1150995-1-colin.king@canonical.com Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Addresses-Coverity: ("Unused value")
Diffstat (limited to 'drivers/scsi/qla4xxx/ql4_nx.c')
-rw-r--r--drivers/scsi/qla4xxx/ql4_nx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/qla4xxx/ql4_nx.c b/drivers/scsi/qla4xxx/ql4_nx.c
index fd30fbd0d33c..e6e35e6958f6 100644
--- a/drivers/scsi/qla4xxx/ql4_nx.c
+++ b/drivers/scsi/qla4xxx/ql4_nx.c
@@ -1767,7 +1767,7 @@ qla4_82xx_start_firmware(struct scsi_qla_host *ha, uint32_t image_start)
int qla4_82xx_try_start_fw(struct scsi_qla_host *ha)
{
- int rval = QLA_ERROR;
+ int rval;
/*
* FW Load priority: