]> git.baikalelectronics.ru Git - kernel.git/commitdiff
scsi: qla2xxx: Remove redundant initialization of pointer req
authorColin Ian King <colin.king@canonical.com>
Fri, 10 Sep 2021 11:46:10 +0000 (12:46 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 15 Sep 2021 03:33:20 +0000 (23:33 -0400)
The pointer req is being initialized with a value that is never read, it is
being updated later on. The assignment is redundant and can be removed.

Link: https://lore.kernel.org/r/20210910114610.44752-1-colin.king@canonical.com
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.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")

drivers/scsi/qla2xxx/qla_mbx.c

index 9eb41dd39043cc7ce79799b3a67619b1470fac7c..73a353153d33bf1b5a5b0814b39a052d7f8a6e95 100644 (file)
@@ -3236,7 +3236,7 @@ qla24xx_abort_command(srb_t *sp)
        fc_port_t       *fcport = sp->fcport;
        struct scsi_qla_host *vha = fcport->vha;
        struct qla_hw_data *ha = vha->hw;
-       struct req_que *req = vha->req;
+       struct req_que *req;
        struct qla_qpair *qpair = sp->qpair;
 
        ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x108c,