diff options
author | YueHaibing <yuehaibing@huawei.com> | 2018-09-26 12:06:29 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-09-26 20:15:17 +0300 |
commit | 6323d57f335ce1490d025cacc83fc10b07792130 (patch) | |
tree | f799e7162fb7ef5721ad8a7caf28299576b3bb0d /drivers/net/ethernet/smsc/smc91x.c | |
parent | 880e1b21115bb49e811352530017557ab692e934 (diff) | |
download | linux-6323d57f335ce1490d025cacc83fc10b07792130.tar.xz |
net: smsc: 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>
Diffstat (limited to 'drivers/net/ethernet/smsc/smc91x.c')
-rw-r--r-- | drivers/net/ethernet/smsc/smc91x.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/smsc/smc91x.c b/drivers/net/ethernet/smsc/smc91x.c index b944828f9ea3..8d6cff8bd162 100644 --- a/drivers/net/ethernet/smsc/smc91x.c +++ b/drivers/net/ethernet/smsc/smc91x.c @@ -638,7 +638,8 @@ done: if (!THROTTLE_TX_PKTS) * now, or set the card to generates an interrupt when ready * for the packet. */ -static int smc_hard_start_xmit(struct sk_buff *skb, struct net_device *dev) +static netdev_tx_t +smc_hard_start_xmit(struct sk_buff *skb, struct net_device *dev) { struct smc_local *lp = netdev_priv(dev); void __iomem *ioaddr = lp->base; |