Message ID | 20180206141236.31651-1-colin.king@canonical.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
Colin, > 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. Applied to 4.17/scsi-queue. Thanks!
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,