scsi: qla2xxx: Remove redundant variable initialization
authorTianjia Zhang <tianjia.zhang@linux.alibaba.com>
Sun, 2 Aug 2020 11:15:27 +0000 (19:15 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 25 Aug 2020 03:17:28 +0000 (23:17 -0400)
The initialization value of `rc` is wrong. It is unnecessary to initialize
`rc` variables, so remove its initialization operation.

Link: https://lore.kernel.org/r/20200802111527.4928-1-tianjia.zhang@linux.alibaba.com
Fixes: 84905dfe78d2 ("scsi: qla2xxx: Fix TMF and Multi-Queue config")
Cc: Quinn Tran <quinn.tran@cavium.com>
Signed-off-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_target.c

index fbb80a0..c2c0e60 100644 (file)
@@ -2025,7 +2025,7 @@ static void qlt_do_tmr_work(struct work_struct *work)
        struct qla_tgt_mgmt_cmd *mcmd =
                container_of(work, struct qla_tgt_mgmt_cmd, work);
        struct qla_hw_data *ha = mcmd->vha->hw;
-       int rc = EIO;
+       int rc;
        uint32_t tag;
        unsigned long flags;