aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Ian King2018-01-05 15:50:37 +0000
committerMartin K. Petersen2018-01-10 23:25:10 -0500
commit8b56918082794e088291d3d08dac643596be5e63 (patch)
tree631c8b0d52f35162a2a9bbeced5a5bd3f75fc29c
parente9f31779a5ce321c5aa4442924f6906b1ade4eea (diff)
scsi: qla2xxx: remove redundant assignment of d
The initialization of d is redundant as this value is never read and it is overwritten inside the subsequent for-loop. Remove this redundant assignment. Cleans up clang warning: drivers/scsi/qla2xxx/qla_gs.c:3985:29: warning: Value stored to 'd' 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>
-rw-r--r--drivers/scsi/qla2xxx/qla_gs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/qla2xxx/qla_gs.c b/drivers/scsi/qla2xxx/qla_gs.c
index 6bfe24eeb402..5bf9a59432f6 100644
--- a/drivers/scsi/qla2xxx/qla_gs.c
+++ b/drivers/scsi/qla2xxx/qla_gs.c
@@ -3982,7 +3982,7 @@ static void qla2x00_async_gpnft_gnnft_sp_done(void *s, int res)
(struct ct_sns_req *)sp->u.iocb_cmd.u.ctarg.req;
struct ct_sns_gpnft_rsp *ct_rsp =
(struct ct_sns_gpnft_rsp *)sp->u.iocb_cmd.u.ctarg.rsp;
- struct ct_sns_gpn_ft_data *d = &ct_rsp->entries[0];
+ struct ct_sns_gpn_ft_data *d;
struct fab_scan_rp *rp;
int i, j, k;
u16 cmd = be16_to_cpu(ct_req->command);