summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorYunjian Wang <wangyunjian@huawei.com>2020-05-06 15:10:28 +0300
committerDavid S. Miller <davem@davemloft.net>2020-05-07 00:24:06 +0300
commit10786531cf996d0d1a0f901d9d559eb947013ac3 (patch)
treee892d33412a9d495dab410a58512decf500a009b /drivers
parent1cfecc2353c24b37eea69d9b9a606ca9f473f9bc (diff)
downloadlinux-10786531cf996d0d1a0f901d9d559eb947013ac3.tar.xz
net: moxa: 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')
-rw-r--r--drivers/net/ethernet/moxa/moxart_ether.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/ethernet/moxa/moxart_ether.c b/drivers/net/ethernet/moxa/moxart_ether.c
index e1651756bf9d..1b25cc42f442 100644
--- a/drivers/net/ethernet/moxa/moxart_ether.c
+++ b/drivers/net/ethernet/moxa/moxart_ether.c
@@ -331,14 +331,15 @@ static irqreturn_t moxart_mac_interrupt(int irq, void *dev_id)
return IRQ_HANDLED;
}
-static int moxart_mac_start_xmit(struct sk_buff *skb, struct net_device *ndev)
+static netdev_tx_t moxart_mac_start_xmit(struct sk_buff *skb,
+ struct net_device *ndev)
{
struct moxart_mac_priv_t *priv = netdev_priv(ndev);
void *desc;
unsigned int len;
unsigned int tx_head;
u32 txdes1;
- int ret = NETDEV_TX_BUSY;
+ netdev_tx_t ret = NETDEV_TX_BUSY;
spin_lock_irq(&priv->txlock);