summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/qlogic
diff options
context:
space:
mode:
authorColin Ian King2019-07-03 10:32:14 +0200
committerDavid S. Miller2019-07-03 20:33:55 +0200
commit2559d7c4dd0eb17e6454fc7f52f9c5ea63a272df (patch)
treefab6565a5c6da797d6ff6f2bd42f5215ec5486ab /drivers/net/ethernet/qlogic
parentatl1c: remove redundant assignment to variable tpd_req (diff)
downloadkernel-qcow2-linux-2559d7c4dd0eb17e6454fc7f52f9c5ea63a272df.tar.gz
kernel-qcow2-linux-2559d7c4dd0eb17e6454fc7f52f9c5ea63a272df.tar.xz
kernel-qcow2-linux-2559d7c4dd0eb17e6454fc7f52f9c5ea63a272df.zip
qlcnic: remove redundant assignment to variable err
The variable err 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. 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')
-rw-r--r--drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c
index af3b037fa442..5632da05145a 100644
--- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c
+++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c
@@ -1066,7 +1066,7 @@ static int qlcnic_sriov_pf_cfg_ip_cmd(struct qlcnic_bc_trans *trans,
{
struct qlcnic_vf_info *vf = trans->vf;
struct qlcnic_adapter *adapter = vf->adapter;
- int err = -EIO;
+ int err;
cmd->req.arg[1] |= vf->vp->handle << 16;
cmd->req.arg[1] |= BIT_31;