summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/qualcomm/emac/emac.c
diff options
context:
space:
mode:
authorYunjian Wang <wangyunjian@huawei.com>2020-05-05 07:57:49 +0200
committerDavid S. Miller <davem@davemloft.net>2020-05-05 20:20:23 +0200
commit3e1853e4e1137ba0a4d314521d153852dbf4aff5 (patch)
treeaf9b84f4f14e9519f7ebe6cd3a40a7d81f4d055c /drivers/net/ethernet/qualcomm/emac/emac.c
parentnet: nxp: Fix use correct return type for ndo_start_xmit() (diff)
downloadlinux-3e1853e4e1137ba0a4d314521d153852dbf4aff5.tar.xz
linux-3e1853e4e1137ba0a4d314521d153852dbf4aff5.zip
net: emac: 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 '')
-rw-r--r--drivers/net/ethernet/qualcomm/emac/emac.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/qualcomm/emac/emac.c b/drivers/net/ethernet/qualcomm/emac/emac.c
index 18b0c7a2d6dc..20b1b43a0e39 100644
--- a/drivers/net/ethernet/qualcomm/emac/emac.c
+++ b/drivers/net/ethernet/qualcomm/emac/emac.c
@@ -115,7 +115,8 @@ static int emac_napi_rtx(struct napi_struct *napi, int budget)
}
/* Transmit the packet */
-static int emac_start_xmit(struct sk_buff *skb, struct net_device *netdev)
+static netdev_tx_t emac_start_xmit(struct sk_buff *skb,
+ struct net_device *netdev)
{
struct emac_adapter *adpt = netdev_priv(netdev);