summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/sun/sunvnet.c
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2018-09-19 13:21:32 +0200
committerDavid S. Miller <davem@davemloft.net>2018-09-20 06:17:58 +0200
commit0e0cc31f6999df18bb5cfd0bd83c892ed5633975 (patch)
treee204f30e6cf0ccf91b42695564cf0d60d4c70110 /drivers/net/ethernet/sun/sunvnet.c
parentnet: amd: fix return type of ndo_start_xmit function (diff)
downloadlinux-0e0cc31f6999df18bb5cfd0bd83c892ed5633975.tar.xz
linux-0e0cc31f6999df18bb5cfd0bd83c892ed5633975.zip
net: sun: fix return type of ndo_start_xmit function
The method ndo_start_xmit() is defined as returning an 'netdev_tx_t', which is a typedef for an enum type, but the implementation in this driver returns an 'int'. Found by coccinelle. Signed-off-by: YueHaibing <yuehaibing@huawei.com> Acked-by: Shannon Nelson <shannon.nelson@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/sun/sunvnet.c')
-rw-r--r--drivers/net/ethernet/sun/sunvnet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/sun/sunvnet.c b/drivers/net/ethernet/sun/sunvnet.c
index 12539b357a78..590172818b92 100644
--- a/drivers/net/ethernet/sun/sunvnet.c
+++ b/drivers/net/ethernet/sun/sunvnet.c
@@ -247,7 +247,7 @@ static u16 vnet_select_queue(struct net_device *dev, struct sk_buff *skb,
}
/* Wrappers to common functions */
-static int vnet_start_xmit(struct sk_buff *skb, struct net_device *dev)
+static netdev_tx_t vnet_start_xmit(struct sk_buff *skb, struct net_device *dev)
{
return sunvnet_start_xmit_common(skb, dev, vnet_tx_port_find);
}