summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/sun/sunbmac.c
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2018-09-19 14:21:32 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-11-20 20:00:16 +0300
commit53a5d204161bb0ffa4a4791be3ccb92e5b9b7956 (patch)
treede023faef0591dc2dd6ea1f655db2ef6393e5378 /drivers/net/ethernet/sun/sunbmac.c
parent804a9a60568afd7aa9c9a511e30c460d615157b2 (diff)
downloadlinux-53a5d204161bb0ffa4a4791be3ccb92e5b9b7956.tar.xz
net: sun: fix return type of ndo_start_xmit function
[ Upstream commit 0e0cc31f6999df18bb5cfd0bd83c892ed5633975 ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/sun/sunbmac.c')
-rw-r--r--drivers/net/ethernet/sun/sunbmac.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/sun/sunbmac.c b/drivers/net/ethernet/sun/sunbmac.c
index 3189722110c2..9a60fb2b4e9d 100644
--- a/drivers/net/ethernet/sun/sunbmac.c
+++ b/drivers/net/ethernet/sun/sunbmac.c
@@ -951,7 +951,8 @@ static void bigmac_tx_timeout(struct net_device *dev)
}
/* Put a packet on the wire. */
-static int bigmac_start_xmit(struct sk_buff *skb, struct net_device *dev)
+static netdev_tx_t
+bigmac_start_xmit(struct sk_buff *skb, struct net_device *dev)
{
struct bigmac *bp = netdev_priv(dev);
int len, entry;