提交 362f37b2 编写于 作者: P Pavel Belous 提交者: David S. Miller

net: ethernet: aquantia: Superfluous initialization of "err".

Fixed superfluous initialization of err.
Signed-off-by: NPavel Belous <pavel.belous@aquantia.com>
Reviewed-by: NLino Sanfilippo <LinoSanfilippo@gmx.de>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 14861e9d
......@@ -87,14 +87,8 @@ static int aq_ndev_close(struct net_device *ndev)
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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册