summaryrefslogtreecommitdiff
path: root/drivers/scsi/isci
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2018-02-06 17:12:36 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2018-02-14 05:37:06 +0300
commit2976fbb6a7aff04076d13d2a37e4b8dbe0d6fd4c (patch)
tree03d7d00e3b64da08191a50590eb6daf95d94e85b /drivers/scsi/isci
parent230816d48ed0213f25a1835f5e0e1bbef96bb896 (diff)
downloadlinux-2976fbb6a7aff04076d13d2a37e4b8dbe0d6fd4c.tar.xz
scsi: isci: remove redundant initialization to 'bit'
Variable bit is initialized with a value that is never read and is being updated immediately after the initialization, hence the initialization is redundant and can be removed. Cleans up clang warning: drivers/scsi/isci/host.c:2769:8: warning: Value stored to 'bit' during its initialization is never read 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/isci')
-rw-r--r--drivers/scsi/isci/host.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/isci/host.c b/drivers/scsi/isci/host.c
index 13b37cdffa8e..1ee3868ade07 100644
--- a/drivers/scsi/isci/host.c
+++ b/drivers/scsi/isci/host.c
@@ -2766,7 +2766,7 @@ static int sci_write_gpio_tx_gp(struct isci_host *ihost, u8 reg_index, u8 reg_co
int i;
for (i = 0; i < 3; i++) {
- int bit = (i << 2) + 2;
+ int bit;
bit = try_test_sas_gpio_gp_bit(to_sas_gpio_od(d, i),
write_data, reg_index,