Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8b569180 authored by Colin Ian King's avatar Colin Ian King Committed by Martin K. Petersen
Browse files

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: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent e9f31779
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);