mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-09 14:50:19 +00:00
scsi: fcoe: Remove redundant assignment to variable 'wlen'
Variable wlen is being assigned a value that is never read, it is being re-assigned with a different value later on. The assignment is redundant and can be removed. Cleans up clang scan build warning: drivers/scsi/fcoe/fcoe.c:1491:2: warning: Value stored to 'wlen' is never read [deadcode.DeadStores] Link: https://lore.kernel.org/r/20220623164710.76831-1-colin.i.king@gmail.com Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
35d11ec239
commit
07f0c8aff5
@ -1488,7 +1488,6 @@ static int fcoe_xmit(struct fc_lport *lport, struct fc_frame *fp)
|
|||||||
|
|
||||||
fh = fc_frame_header_get(fp);
|
fh = fc_frame_header_get(fp);
|
||||||
skb = fp_skb(fp);
|
skb = fp_skb(fp);
|
||||||
wlen = skb->len / FCOE_WORD_TO_BYTE;
|
|
||||||
|
|
||||||
if (!lport->link_up) {
|
if (!lport->link_up) {
|
||||||
kfree_skb(skb);
|
kfree_skb(skb);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user