net: hns3: fix return type of ndo_start_xmit function
The method ndo_start_xmit() is defined as returning an 'netdev_tx_t', which is a typedef for an enum type, also the implementation in this driver has returns 'netdev_tx_t' value, so just change the function return type to netdev_tx_t. Found by coccinelle. Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
5391346e16
commit
c9c3941186
@@ -422,7 +422,8 @@ static void hip04_start_tx_timer(struct hip04_priv *priv)
|
||||
ns, HRTIMER_MODE_REL);
|
||||
}
|
||||
|
||||
static int hip04_mac_start_xmit(struct sk_buff *skb, struct net_device *ndev)
|
||||
static netdev_tx_t
|
||||
hip04_mac_start_xmit(struct sk_buff *skb, struct net_device *ndev)
|
||||
{
|
||||
struct hip04_priv *priv = netdev_priv(ndev);
|
||||
struct net_device_stats *stats = &ndev->stats;
|
||||
|
Reference in New Issue
Block a user