scsi: mvsas: remove redundant assignment to variable rc
authorColin Ian King <colin.king@canonical.com>
Thu, 5 Sep 2019 13:50:17 +0000 (14:50 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 1 Oct 2019 02:42:41 +0000 (22:42 -0400)
The variable rc 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/20190905135017.23772-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>
drivers/scsi/mvsas/mv_sas.c

index 3e0b8eb..a920ece 100644 (file)
@@ -1541,7 +1541,7 @@ out:
 
 int mvs_abort_task_set(struct domain_device *dev, u8 *lun)
 {
-       int rc = TMF_RESP_FUNC_FAILED;
+       int rc;
        struct mvs_tmf_task tmf_task;
 
        tmf_task.tmf = TMF_ABORT_TASK_SET;