Skip to content

Commit 89523cb

Browse files
Colin Ian Kingmartinkpetersen
authored andcommitted
scsi: qedf: Remove redundant initialization of variable rc
The variable rc is being initialized with a value that is never read and it is being updated later with a new value. The initialization is redundant and can be removed. Link: https://lore.kernel.org/r/[email protected] Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 61e6ba0 commit 89523cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/scsi/qedf/qedf_fip.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ void qedf_fcoe_send_vlan_req(struct qedf_ctx *qedf)
2020
#define MY_FIP_ALL_FCF_MACS ((__u8[6]) { 1, 0x10, 0x18, 1, 0, 2 })
2121
static u8 my_fcoe_all_fcfs[ETH_ALEN] = MY_FIP_ALL_FCF_MACS;
2222
unsigned long flags = 0;
23-
int rc = -1;
23+
int rc;
2424

2525
skb = dev_alloc_skb(sizeof(struct fip_vlan));
2626
if (!skb) {

0 commit comments

Comments
 (0)