diff options
author | Pavel Belous <pavel.belous@aquantia.com> | 2017-02-20 22:36:43 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-02-21 01:11:09 +0300 |
commit | 362f37b28ba52115be9b30134375b199ac612df4 (patch) | |
tree | a494c2946d38db64a2089e1612117f467d7a43f0 /drivers | |
parent | 14861e9de2c2ffe404fb41cc34150f09a39acb44 (diff) | |
download | linux-362f37b28ba52115be9b30134375b199ac612df4.tar.xz |
net: ethernet: aquantia: Superfluous initialization of "err".
Fixed superfluous initialization of err.
Signed-off-by: Pavel Belous <pavel.belous@aquantia.com>
Reviewed-by: Lino Sanfilippo <LinoSanfilippo@gmx.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/aquantia/atlantic/aq_main.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/net/ethernet/aquantia/atlantic/aq_main.c b/drivers/net/ethernet/aquantia/atlantic/aq_main.c index 91c66f577906..dad63623be6a 100644 --- a/drivers/net/ethernet/aquantia/atlantic/aq_main.c +++ b/drivers/net/ethernet/aquantia/atlantic/aq_main.c @@ -87,14 +87,8 @@ err_exit: static int aq_ndev_start_xmit(struct sk_buff *skb, struct net_device *ndev) { struct aq_nic_s *aq_nic = netdev_priv(ndev); - int err = 0; - - err = aq_nic_xmit(aq_nic, skb); - if (err < 0) - goto err_exit; -err_exit: - return err; + return aq_nic_xmit(aq_nic, skb); } static int aq_ndev_change_mtu(struct net_device *ndev, int new_mtu) |