diff options
author | Joe Perches <joe@perches.com> | 2014-05-15 23:51:43 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-05-18 20:51:03 -0400 |
commit | 02948344fbf511c6eec28687dc76bb64b758ff93 (patch) | |
tree | 0a655453ab233ef20d2e455ea07bc367e68de051 /drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c | |
parent | a8d0d8417c0bdc870d28afb83bc12e61a818efa3 (diff) | |
download | linux-stable-02948344fbf511c6eec28687dc76bb64b758ff93.tar.gz linux-stable-02948344fbf511c6eec28687dc76bb64b758ff93.tar.bz2 linux-stable-02948344fbf511c6eec28687dc76bb64b758ff93.zip |
bnx2x: Convert return 0 to return rc
These "return 0;" uses seem wrong as there are
rc variables where error return values are set
but unused.
Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: Dmitry Kravkov <Dmitry.Kravkov@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c')
-rw-r--r-- | drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c index 81cc2d9831c2..b8078d50261b 100644 --- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c +++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c @@ -2695,7 +2695,7 @@ out: bnx2x_unlock_vf_pf_channel(bp, vf, CHANNEL_TLV_PF_SET_MAC); } - return 0; + return rc; } int bnx2x_set_vf_vlan(struct net_device *dev, int vfidx, u16 vlan, u8 qos) |