diff options
author | YueHaibing <yuehaibing@huawei.com> | 2018-09-21 04:42:15 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-09-22 04:11:39 +0200 |
commit | 2b49117a5abee8478b0470cba46ac74f93b4a479 (patch) | |
tree | 06fddf9646cf41403870c20680a74495bbaa2961 /drivers/net/ethernet/micrel/ks8851_mll.c | |
parent | net: phy: mdio-bcm-unimac: Allow configuring MDIO clock divider (diff) | |
download | linux-2b49117a5abee8478b0470cba46ac74f93b4a479.tar.xz linux-2b49117a5abee8478b0470cba46ac74f93b4a479.zip |
net: micrel: 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/micrel/ks8851_mll.c')
-rw-r--r-- | drivers/net/ethernet/micrel/ks8851_mll.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/micrel/ks8851_mll.c b/drivers/net/ethernet/micrel/ks8851_mll.c index 0e9719fbc624..35f8c9ef204d 100644 --- a/drivers/net/ethernet/micrel/ks8851_mll.c +++ b/drivers/net/ethernet/micrel/ks8851_mll.c @@ -1021,9 +1021,9 @@ static void ks_write_qmu(struct ks_net *ks, u8 *pdata, u16 len) * spin_lock_irqsave is required because tx and rx should be mutual exclusive. * So while tx is in-progress, prevent IRQ interrupt from happenning. */ -static int ks_start_xmit(struct sk_buff *skb, struct net_device *netdev) +static netdev_tx_t ks_start_xmit(struct sk_buff *skb, struct net_device *netdev) { - int retv = NETDEV_TX_OK; + netdev_tx_t retv = NETDEV_TX_OK; struct ks_net *ks = netdev_priv(netdev); disable_irq(netdev->irq); |