net: marvell: 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, so make sure the implementation in
this driver has returns 'netdev_tx_t' value, and 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:
YueHaibing
2018-09-19 18:19:26 +08:00
committed by David S. Miller
parent db161d930a
commit f03508ce3f
3 changed files with 4 additions and 3 deletions

View File

@@ -2393,7 +2393,7 @@ error:
}
/* Main tx processing */
static int mvneta_tx(struct sk_buff *skb, struct net_device *dev)
static netdev_tx_t mvneta_tx(struct sk_buff *skb, struct net_device *dev)
{
struct mvneta_port *pp = netdev_priv(dev);
u16 txq_id = skb_get_queue_mapping(skb);