aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/i825xx/ether1.c
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2018-09-21 11:44:05 +0800
committerDavid S. Miller <davem@davemloft.net>2018-09-21 19:15:15 -0700
commit648c361a568dcd098a3496c6c66bca4c8473e52b (patch)
tree9820aedde867c61a66dc6c4c2009ca5e3aaa1d56 /drivers/net/ethernet/i825xx/ether1.c
parentnet: wiznet: fix return type of ndo_start_xmit function (diff)
downloadlinux-dev-648c361a568dcd098a3496c6c66bca4c8473e52b.tar.xz
linux-dev-648c361a568dcd098a3496c6c66bca4c8473e52b.zip
net: i825xx: 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, so make sure the implementation in this driver has returns 'netdev_tx_t' value, and change the function return type to netdev_tx_t. Found by coccinelle. Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/i825xx/ether1.c')
-rw-r--r--drivers/net/ethernet/i825xx/ether1.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/ethernet/i825xx/ether1.c b/drivers/net/ethernet/i825xx/ether1.c
index dc983450354b..35f6291a3672 100644
--- a/drivers/net/ethernet/i825xx/ether1.c
+++ b/drivers/net/ethernet/i825xx/ether1.c
@@ -64,7 +64,8 @@ static unsigned int net_debug = NET_DEBUG;
#define RX_AREA_END 0x0fc00
static int ether1_open(struct net_device *dev);
-static int ether1_sendpacket(struct sk_buff *skb, struct net_device *dev);
+static netdev_tx_t ether1_sendpacket(struct sk_buff *skb,
+ struct net_device *dev);
static irqreturn_t ether1_interrupt(int irq, void *dev_id);
static int ether1_close(struct net_device *dev);
static void ether1_setmulticastlist(struct net_device *dev);
@@ -667,7 +668,7 @@ ether1_timeout(struct net_device *dev)
netif_wake_queue(dev);
}
-static int
+static netdev_tx_t
ether1_sendpacket (struct sk_buff *skb, struct net_device *dev)
{
int tmp, tst, nopaddr, txaddr, tbdaddr, dataddr;