diff options
author | Yunjian Wang <wangyunjian@huawei.com> | 2020-05-06 13:38:46 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-05-06 23:24:06 +0200 |
commit | 1cfecc2353c24b37eea69d9b9a606ca9f473f9bc (patch) | |
tree | 32376a04de312099c77b5e00fe0e5874984f069f /drivers/net/ethernet/lantiq_xrx200.c | |
parent | net: enetc: Make some symbols static (diff) | |
download | linux-1cfecc2353c24b37eea69d9b9a606ca9f473f9bc.tar.xz linux-1cfecc2353c24b37eea69d9b9a606ca9f473f9bc.zip |
net: lantiq: Fix use correct return type for ndo_start_xmit()
The method ndo_start_xmit() returns a value of type netdev_tx_t. Fix
the ndo function to use the correct type.
Signed-off-by: Yunjian Wang <wangyunjian@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/lantiq_xrx200.c')
-rw-r--r-- | drivers/net/ethernet/lantiq_xrx200.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/lantiq_xrx200.c b/drivers/net/ethernet/lantiq_xrx200.c index 900affbdcc0e..1645e4e7ebdb 100644 --- a/drivers/net/ethernet/lantiq_xrx200.c +++ b/drivers/net/ethernet/lantiq_xrx200.c @@ -276,7 +276,8 @@ static int xrx200_tx_housekeeping(struct napi_struct *napi, int budget) return pkts; } -static int xrx200_start_xmit(struct sk_buff *skb, struct net_device *net_dev) +static netdev_tx_t xrx200_start_xmit(struct sk_buff *skb, + struct net_device *net_dev) { struct xrx200_priv *priv = netdev_priv(net_dev); struct xrx200_chan *ch = &priv->chan_tx; |