mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-24 06:44:23 +08:00
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>
This commit is contained in:
parent
14861e9de2
commit
362f37b28b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user