diff options
author | John Garry <john.garry@huawei.com> | 2017-08-11 00:09:42 +0800 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2017-08-24 22:28:49 -0400 |
commit | 5aec704f0db7b12663b13b3c73dc1432f9dddcf0 (patch) | |
tree | 61aa1d27ca5d3e427252a4ea22ba43c419c50401 /drivers/scsi/hisi_sas/hisi_sas_v3_hw.c | |
parent | 2400620c1fedb503f14f252e4ac799dfa45ed722 (diff) | |
download | linux-5aec704f0db7b12663b13b3c73dc1432f9dddcf0.tar.gz linux-5aec704f0db7b12663b13b3c73dc1432f9dddcf0.tar.bz2 linux-5aec704f0db7b12663b13b3c73dc1432f9dddcf0.zip |
scsi: hisi_sas: remove phy_down_v3_hw() res variable
Variable res only holds value 0, so remove it.
This cleans up a coccicheck warning.
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/hisi_sas/hisi_sas_v3_hw.c')
-rw-r--r-- | drivers/scsi/hisi_sas/hisi_sas_v3_hw.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c b/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c index 8e4bfadb79f8..3620a3e60a63 100644 --- a/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c +++ b/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c @@ -1200,7 +1200,6 @@ end: static int phy_down_v3_hw(int phy_no, struct hisi_hba *hisi_hba) { - int res = 0; u32 phy_state, sl_ctrl, txid_auto; struct device *dev = hisi_hba->dev; @@ -1221,7 +1220,7 @@ static int phy_down_v3_hw(int phy_no, struct hisi_hba *hisi_hba) hisi_sas_phy_write32(hisi_hba, phy_no, CHL_INT0, CHL_INT0_NOT_RDY_MSK); hisi_sas_phy_write32(hisi_hba, phy_no, PHYCTRL_NOT_RDY_MSK, 0); - return res; + return 0; } static void phy_bcast_v3_hw(int phy_no, struct hisi_hba *hisi_hba) |