mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-15 16:53:54 +08:00
scsi: elx: efct: Remove redundant initialization of variable 'ret'
The variable 'ret' 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/20210804132451.113086-1-colin.king@canonical.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
632c4ae6da
commit
e71dd41ea0
@ -780,7 +780,7 @@ efct_lio_npiv_make_nport(struct target_fabric_configfs *tf,
|
||||
{
|
||||
struct efct_lio_vport *lio_vport;
|
||||
struct efct *efct;
|
||||
int ret = -1;
|
||||
int ret;
|
||||
u64 p_wwpn, npiv_wwpn, npiv_wwnn;
|
||||
char *p, *pbuf, tmp[128];
|
||||
struct efct_lio_vport_list_t *vport_list;
|
||||
|
Loading…
Reference in New Issue
Block a user