Skip to content

Commit 7df0a6a

Browse files
Colin Ian Kingdavem330
authored andcommitted
qed: remove redundant assignment to variable 'rc'
The variable 'rc' is being assigned a value that is never read and it is being updated later with a new value. The assignment is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 2dd6a24 commit 7df0a6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/qlogic/qed/qed_l2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,8 +369,8 @@ int qed_sp_eth_vport_start(struct qed_hwfn *p_hwfn,
369369
struct qed_spq_entry *p_ent = NULL;
370370
struct qed_sp_init_data init_data;
371371
u8 abs_vport_id = 0;
372-
int rc = -EINVAL;
373372
u16 rx_mode = 0;
373+
int rc;
374374

375375
rc = qed_fw_vport(p_hwfn, p_params->vport_id, &abs_vport_id);
376376
if (rc)

0 commit comments

Comments
 (0)