aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/net/ethernet/qualcomm/emac/emac-mac.c
diff options
context:
space:
mode:
authorYunjian Wang <wangyunjian@huawei.com>2020-05-05 13:57:49 +0800
committerDavid S. Miller <davem@davemloft.net>2020-05-05 11:20:23 -0700
commit3e1853e4e1137ba0a4d314521d153852dbf4aff5 (patch)
treeaf9b84f4f14e9519f7ebe6cd3a40a7d81f4d055c /drivers/net/ethernet/qualcomm/emac/emac-mac.c
parentnet: nxp: Fix use correct return type for ndo_start_xmit() (diff)
downloadwireguard-linux-3e1853e4e1137ba0a4d314521d153852dbf4aff5.tar.xz
wireguard-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 'drivers/net/ethernet/qualcomm/emac/emac-mac.c')
-rw-r--r--drivers/net/ethernet/qualcomm/emac/emac-mac.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/ethernet/qualcomm/emac/emac-mac.c b/drivers/net/ethernet/qualcomm/emac/emac-mac.c
index 251d4ac4af02..117188e3c7de 100644
--- a/drivers/net/ethernet/qualcomm/emac/emac-mac.c
+++ b/drivers/net/ethernet/qualcomm/emac/emac-mac.c
@@ -1431,8 +1431,9 @@ error:
}
/* Transmit the packet using specified transmit queue */
-int emac_mac_tx_buf_send(struct emac_adapter *adpt, struct emac_tx_queue *tx_q,
- struct sk_buff *skb)
+netdev_tx_t emac_mac_tx_buf_send(struct emac_adapter *adpt,
+ struct emac_tx_queue *tx_q,
+ struct sk_buff *skb)
{
struct emac_tpd tpd;
u32 prod_idx;