[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200825063836.92239-1-jingxiangfeng@huawei.com>
Date: Tue, 25 Aug 2020 14:38:36 +0800
From: Jing Xiangfeng <jingxiangfeng@...wei.com>
To: <kashyap.desai@...adcom.com>, <sumit.saxena@...adcom.com>,
<shivasharan.srikanteshwara@...adcom.com>, <jejb@...ux.ibm.com>,
<martin.petersen@...cle.com>
CC: <megaraidlinux.pdl@...adcom.com>, <linux-scsi@...r.kernel.org>,
<linux-kernel@...r.kernel.org>, <jingxiangfeng@...wei.com>
Subject: [PATCH] scsi: megaraid: Remove unnecessary assignment to variable ret
The variable ret is being initialized with 'FAILED'. So we can remove
this assignement.
Signed-off-by: Jing Xiangfeng <jingxiangfeng@...wei.com>
---
drivers/scsi/megaraid/megaraid_sas_fusion.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/scsi/megaraid/megaraid_sas_fusion.c b/drivers/scsi/megaraid/megaraid_sas_fusion.c
index 0824410f78f8..96d424645b18 100644
--- a/drivers/scsi/megaraid/megaraid_sas_fusion.c
+++ b/drivers/scsi/megaraid/megaraid_sas_fusion.c
@@ -4700,7 +4700,6 @@ int megasas_reset_target_fusion(struct scsi_cmnd *scmd)
if (atomic_read(&instance->adprecovery) != MEGASAS_HBA_OPERATIONAL) {
dev_err(&instance->pdev->dev, "Controller is not OPERATIONAL,"
"SCSI host:%d\n", instance->host->host_no);
- ret = FAILED;
return ret;
}
@@ -4713,7 +4712,6 @@ int megasas_reset_target_fusion(struct scsi_cmnd *scmd)
}
if (!mr_device_priv_data->is_tm_capable) {
- ret = FAILED;
goto out;
}
--
2.17.1
Powered by blists - more mailing lists