diff options
author | Yunjian Wang <wangyunjian@huawei.com> | 2020-05-05 08:57:49 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-05-05 21:20:23 +0300 |
commit | 3e1853e4e1137ba0a4d314521d153852dbf4aff5 (patch) | |
tree | af9b84f4f14e9519f7ebe6cd3a40a7d81f4d055c /drivers/net/ethernet/qualcomm/emac/emac-mac.c | |
parent | 58618ef85546726cf27c38ddc1b022c703b7a6ad (diff) | |
download | linux-3e1853e4e1137ba0a4d314521d153852dbf4aff5.tar.xz |
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.c | 5 |
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; |