net: ethernet: aquantia: Superfluous initialization of "err".
authorPavel Belous <pavel.belous@aquantia.com>
Mon, 20 Feb 2017 19:36:43 +0000 (22:36 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Feb 2017 22:11:09 +0000 (17:11 -0500)
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>
drivers/net/ethernet/aquantia/atlantic/aq_main.c

index 91c66f57790688286c2788484da501829fd523d4..dad63623be6a93672974fb43ee50b518fff59ab5 100644 (file)
@@ -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)