summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorPavel Belous <pavel.belous@aquantia.com>2017-02-20 22:36:43 +0300
committerDavid S. Miller <davem@davemloft.net>2017-02-21 01:11:09 +0300
commit362f37b28ba52115be9b30134375b199ac612df4 (patch)
treea494c2946d38db64a2089e1612117f467d7a43f0 /drivers/net
parent14861e9de2c2ffe404fb41cc34150f09a39acb44 (diff)
downloadlinux-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/net')
-rw-r--r--drivers/net/ethernet/aquantia/atlantic/aq_main.c8
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)