diff options
author | YueHaibing <yuehaibing@huawei.com> | 2018-09-19 18:32:40 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-09-19 21:17:58 -0700 |
commit | 81255af8d9d5565004792c295dde49344df450ca (patch) | |
tree | 948f879739f01a6bbe7318d93b632f5f2b71de2e /drivers/net/ethernet/xilinx/xilinx_axienet_main.c | |
parent | net: toshiba: fix return type of ndo_start_xmit function (diff) | |
download | linux-dev-81255af8d9d5565004792c295dde49344df450ca.tar.xz linux-dev-81255af8d9d5565004792c295dde49344df450ca.zip |
net: xilinx: 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/xilinx/xilinx_axienet_main.c')
-rw-r--r-- | drivers/net/ethernet/xilinx/xilinx_axienet_main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/xilinx/xilinx_axienet_main.c b/drivers/net/ethernet/xilinx/xilinx_axienet_main.c index f24f48f33802..12a14609ec47 100644 --- a/drivers/net/ethernet/xilinx/xilinx_axienet_main.c +++ b/drivers/net/ethernet/xilinx/xilinx_axienet_main.c @@ -653,7 +653,8 @@ static inline int axienet_check_tx_bd_space(struct axienet_local *lp, * start the transmission. Additionally if checksum offloading is supported, * it populates AXI Stream Control fields with appropriate values. */ -static int axienet_start_xmit(struct sk_buff *skb, struct net_device *ndev) +static netdev_tx_t +axienet_start_xmit(struct sk_buff *skb, struct net_device *ndev) { u32 ii; u32 num_frag; |