mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-22 17:01:14 +00:00
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>
This commit is contained in:
parent
b70d846cf4
commit
2559d7c4dd
1 changed files with 1 additions and 1 deletions
|
@ -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_vf_info *vf = trans->vf;
|
||||||
struct qlcnic_adapter *adapter = vf->adapter;
|
struct qlcnic_adapter *adapter = vf->adapter;
|
||||||
int err = -EIO;
|
int err;
|
||||||
|
|
||||||
cmd->req.arg[1] |= vf->vp->handle << 16;
|
cmd->req.arg[1] |= vf->vp->handle << 16;
|
||||||
cmd->req.arg[1] |= BIT_31;
|
cmd->req.arg[1] |= BIT_31;
|
||||||
|
|
Loading…
Reference in a new issue