diff options
author | YueHaibing <yuehaibing@huawei.com> | 2018-09-21 10:50:32 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-09-21 19:12:13 -0700 |
commit | 06983aa526c759ebdf43f202d8d0491d9494e2f4 (patch) | |
tree | 86a603e483516555f93f8fc40fa20cb2e4ca9356 /drivers/net/ethernet/freescale/gianfar.c | |
parent | 2b49117a5abee8478b0470cba46ac74f93b4a479 (diff) | |
download | linux-06983aa526c759ebdf43f202d8d0491d9494e2f4.tar.gz linux-06983aa526c759ebdf43f202d8d0491d9494e2f4.tar.bz2 linux-06983aa526c759ebdf43f202d8d0491d9494e2f4.zip |
net: freescale: 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/freescale/gianfar.c')
-rw-r--r-- | drivers/net/ethernet/freescale/gianfar.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/freescale/gianfar.c b/drivers/net/ethernet/freescale/gianfar.c index c488d31e2af6..0bd21a493016 100644 --- a/drivers/net/ethernet/freescale/gianfar.c +++ b/drivers/net/ethernet/freescale/gianfar.c @@ -110,7 +110,7 @@ const char gfar_driver_version[] = "2.0"; static int gfar_enet_open(struct net_device *dev); -static int gfar_start_xmit(struct sk_buff *skb, struct net_device *dev); +static netdev_tx_t gfar_start_xmit(struct sk_buff *skb, struct net_device *dev); static void gfar_reset_task(struct work_struct *work); static void gfar_timeout(struct net_device *dev); static int gfar_close(struct net_device *dev); @@ -2332,7 +2332,7 @@ static inline bool gfar_csum_errata_76(struct gfar_private *priv, /* This is called by the kernel when a frame is ready for transmission. * It is pointed to by the dev->hard_start_xmit function pointer */ -static int gfar_start_xmit(struct sk_buff *skb, struct net_device *dev) +static netdev_tx_t gfar_start_xmit(struct sk_buff *skb, struct net_device *dev) { struct gfar_private *priv = netdev_priv(dev); struct gfar_priv_tx_q *tx_queue = NULL; |