From 61bf3fdb5dd0e6980a6b514a924ea1da75e2a946 Mon Sep 17 00:00:00 2001 From: Colin Ian King Date: Wed, 16 Jun 2021 18:16:21 +0100 Subject: scsi: elx: efct: Remove redundant initialization of variable lun The variable "lun" is being initialized with a value that is never read, it is being updated later on. The assignment is redundant and can be removed. Link: https://lore.kernel.org/r/20210616171621.16176-1-colin.king@canonical.com Reviewed-by: James Smart Signed-off-by: Colin Ian King Signed-off-by: Martin K. Petersen Addresses-Coverity: ("Unused value") --- drivers/scsi/elx/efct/efct_unsol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/scsi/elx') diff --git a/drivers/scsi/elx/efct/efct_unsol.c b/drivers/scsi/elx/efct/efct_unsol.c index a9384c9acfde..e6addab66a60 100644 --- a/drivers/scsi/elx/efct/efct_unsol.c +++ b/drivers/scsi/elx/efct/efct_unsol.c @@ -342,7 +342,7 @@ efct_dispatch_fcp_cmd(struct efct_node *node, struct efc_hw_sequence *seq) struct fc_frame_header *fchdr = seq->header->dma.virt; struct fcp_cmnd *cmnd = NULL; struct efct_io *io = NULL; - u32 lun = U32_MAX; + u32 lun; if (!seq->payload) { efc_log_err(efct, "Sequence payload is NULL.\n"); -- cgit v1.2.3