mirror of https://github.com/torvalds/linux.git
scsi: bnx2fc: Remove redundant assignment to variable 'i'
The variable 'i' is being assigned a value that is never read, the following code path via the label ofld_err never refers to the variable. The assignment is redundant and can be removed. Cleans up clang scan warning: drivers/scsi/bnx2fc/bnx2fc_tgt.c:132:5: warning: Value stored to 'i' is never read [deadcode.DeadStores] Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Link: https://lore.kernel.org/r/20240415104311.484890-1-colin.i.king@gmail.com Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
28027ec8e3
commit
cb3bfbfa1f
|
|
@ -128,10 +128,8 @@ static void bnx2fc_offload_session(struct fcoe_port *port,
|
||||||
BNX2FC_TGT_DBG(tgt, "ctx_alloc_failure, "
|
BNX2FC_TGT_DBG(tgt, "ctx_alloc_failure, "
|
||||||
"retry ofld..%d\n", i++);
|
"retry ofld..%d\n", i++);
|
||||||
msleep_interruptible(1000);
|
msleep_interruptible(1000);
|
||||||
if (i > 3) {
|
if (i > 3)
|
||||||
i = 0;
|
|
||||||
goto ofld_err;
|
goto ofld_err;
|
||||||
}
|
|
||||||
goto retry_ofld;
|
goto retry_ofld;
|
||||||
}
|
}
|
||||||
goto ofld_err;
|
goto ofld_err;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue