summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/mvsas
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2019-09-05 14:50:17 +0100
committerMartin K. Petersen <martin.petersen@oracle.com>2019-09-30 22:42:41 -0400
commitc88dcd8aca65bf8de54093e245128157bb953d85 (patch)
treed441fcc7ebfbe22538cb55fd8d1d2f51ca4fc6ce /drivers/scsi/mvsas
parentda6d2965dbdb480f091c42f54a09abe8056282e5 (diff)
downloadlinux-c88dcd8aca65bf8de54093e245128157bb953d85.tar.bz2
scsi: mvsas: remove redundant assignment to variable rc
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>
Diffstat (limited to 'drivers/scsi/mvsas')
-rw-r--r--drivers/scsi/mvsas/mv_sas.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/mvsas/mv_sas.c b/drivers/scsi/mvsas/mv_sas.c
index 3e0b8ebe257f..a920eced92ec 100644
--- a/drivers/scsi/mvsas/mv_sas.c
+++ b/drivers/scsi/mvsas/mv_sas.c
@@ -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;