summaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorYunjian Wang <wangyunjian@huawei.com>2020-05-06 13:38:46 +0200
committerDavid S. Miller <davem@davemloft.net>2020-05-06 23:24:06 +0200
commit1cfecc2353c24b37eea69d9b9a606ca9f473f9bc (patch)
tree32376a04de312099c77b5e00fe0e5874984f069f /drivers/net
parentnet: enetc: Make some symbols static (diff)
downloadlinux-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')
-rw-r--r--drivers/net/ethernet/lantiq_xrx200.c3
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;