Message ID | 20180105155037.17981-1-colin.king@canonical.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
Colin, > 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. Applied to 4.16/scsi-queue.
diff --git a/drivers/scsi/qla2xxx/qla_gs.c b/drivers/scsi/qla2xxx/qla_gs.c index 6bfe24eeb402..f40ea8f120b7 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);