net: sun: 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, but the implementation in this driver returns an 'int'. Found by coccinelle. Signed-off-by: YueHaibing <yuehaibing@huawei.com> Acked-by: Shannon Nelson <shannon.nelson@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
fe72352e37
commit
0e0cc31f69
@@ -950,7 +950,8 @@ static void bigmac_tx_timeout(struct net_device *dev)
|
||||
}
|
||||
|
||||
/* Put a packet on the wire. */
|
||||
static int bigmac_start_xmit(struct sk_buff *skb, struct net_device *dev)
|
||||
static netdev_tx_t
|
||||
bigmac_start_xmit(struct sk_buff *skb, struct net_device *dev)
|
||||
{
|
||||
struct bigmac *bp = netdev_priv(dev);
|
||||
int len, entry;
|
||||
|
Reference in New Issue
Block a user