aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/qlogic/qed/qed_l2.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2020-04-05 14:49:14 +0100
committerDavid S. Miller <davem@davemloft.net>2020-04-06 10:22:09 -0700
commit7df0a6a3e53dafa0e36127cb09306a19b03bd182 (patch)
treef2f60debbd5babaf436426e57c83499b0854a151 /drivers/net/ethernet/qlogic/qed/qed_l2.c
parentwimax: remove some redundant assignments to variable result (diff)
downloadlinux-dev-7df0a6a3e53dafa0e36127cb09306a19b03bd182.tar.xz
linux-dev-7df0a6a3e53dafa0e36127cb09306a19b03bd182.zip
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 <colin.king@canonical.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/qlogic/qed/qed_l2.c')
-rw-r--r--drivers/net/ethernet/qlogic/qed/qed_l2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/qlogic/qed/qed_l2.c b/drivers/net/ethernet/qlogic/qed/qed_l2.c
index 1a5fc2ae351c..29810a1aa210 100644
--- a/drivers/net/ethernet/qlogic/qed/qed_l2.c
+++ b/drivers/net/ethernet/qlogic/qed/qed_l2.c
@@ -369,8 +369,8 @@ int qed_sp_eth_vport_start(struct qed_hwfn *p_hwfn,
struct qed_spq_entry *p_ent = NULL;
struct qed_sp_init_data init_data;
u8 abs_vport_id = 0;
- int rc = -EINVAL;
u16 rx_mode = 0;
+ int rc;
rc = qed_fw_vport(p_hwfn, p_params->vport_id, &abs_vport_id);
if (rc)