Skip to content

Commit 2559d7c

Browse files
Colin Ian Kingdavem330
authored andcommitted
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent b70d846 commit 2559d7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1066,7 +1066,7 @@ static int qlcnic_sriov_pf_cfg_ip_cmd(struct qlcnic_bc_trans *trans,
10661066
{
10671067
struct qlcnic_vf_info *vf = trans->vf;
10681068
struct qlcnic_adapter *adapter = vf->adapter;
1069-
int err = -EIO;
1069+
int err;
10701070

10711071
cmd->req.arg[1] |= vf->vp->handle << 16;
10721072
cmd->req.arg[1] |= BIT_31;

0 commit comments

Comments
 (0)