mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 13:53:33 +00:00
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")
This commit is contained in:
parent
5911429343
commit
61bf3fdb5d
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue