summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/micrel/ks8695net.c
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2018-09-21 04:42:15 +0200
committerDavid S. Miller <davem@davemloft.net>2018-09-22 04:11:39 +0200
commit2b49117a5abee8478b0470cba46ac74f93b4a479 (patch)
tree06fddf9646cf41403870c20680a74495bbaa2961 /drivers/net/ethernet/micrel/ks8695net.c
parentnet: phy: mdio-bcm-unimac: Allow configuring MDIO clock divider (diff)
downloadlinux-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/ks8695net.c')
-rw-r--r--drivers/net/ethernet/micrel/ks8695net.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/micrel/ks8695net.c b/drivers/net/ethernet/micrel/ks8695net.c
index bd51e057e915..b881f5d4a7f9 100644
--- a/drivers/net/ethernet/micrel/ks8695net.c
+++ b/drivers/net/ethernet/micrel/ks8695net.c
@@ -1164,7 +1164,7 @@ ks8695_timeout(struct net_device *ndev)
* sk_buff and adds it to the TX ring. It then kicks the TX DMA
* engine to ensure transmission begins.
*/
-static int
+static netdev_tx_t
ks8695_start_xmit(struct sk_buff *skb, struct net_device *ndev)
{
struct ks8695_priv *ksp = netdev_priv(ndev);