summaryrefslogtreecommitdiff
path: root/drivers/scsi/elx
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2021-06-16 20:16:21 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2021-06-19 06:01:03 +0300
commit61bf3fdb5dd0e6980a6b514a924ea1da75e2a946 (patch)
tree8c0e68fd174014c5e45f6c412e0ed6120153bd7a /drivers/scsi/elx
parent5911429343a87bdc8575915c9f6a9a2ddb6af7fe (diff)
downloadlinux-61bf3fdb5dd0e6980a6b514a924ea1da75e2a946.tar.xz
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 <jsmart2021@gmail.com> Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Addresses-Coverity: ("Unused value")
Diffstat (limited to 'drivers/scsi/elx')
-rw-r--r--drivers/scsi/elx/efct/efct_unsol.c2
1 files changed, 1 insertions, 1 deletions
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");