Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Colin Ian King and committed by
David S. Miller
2559d7c4 b70d846c

+1 -1
+1 -1
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c
··· 1066 1066 { 1067 1067 struct qlcnic_vf_info *vf = trans->vf; 1068 1068 struct qlcnic_adapter *adapter = vf->adapter; 1069 - int err = -EIO; 1069 + int err; 1070 1070 1071 1071 cmd->req.arg[1] |= vf->vp->handle << 16; 1072 1072 cmd->req.arg[1] |= BIT_31;