Commit 9532131f authored by Yunjian Wang's avatar Yunjian Wang Committed by David S. Miller

net: 7990: 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: default avatarYunjian Wang <wangyunjian@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 787e4a79
...@@ -536,7 +536,7 @@ void lance_tx_timeout(struct net_device *dev, unsigned int txqueue) ...@@ -536,7 +536,7 @@ void lance_tx_timeout(struct net_device *dev, unsigned int txqueue)
} }
EXPORT_SYMBOL_GPL(lance_tx_timeout); EXPORT_SYMBOL_GPL(lance_tx_timeout);
int lance_start_xmit(struct sk_buff *skb, struct net_device *dev) netdev_tx_t lance_start_xmit(struct sk_buff *skb, struct net_device *dev)
{ {
struct lance_private *lp = netdev_priv(dev); struct lance_private *lp = netdev_priv(dev);
volatile struct lance_init_block *ib = lp->init_block; volatile struct lance_init_block *ib = lp->init_block;
......
...@@ -241,7 +241,7 @@ struct lance_private { ...@@ -241,7 +241,7 @@ struct lance_private {
/* Now the prototypes we export */ /* Now the prototypes we export */
int lance_open(struct net_device *dev); int lance_open(struct net_device *dev);
int lance_close(struct net_device *dev); int lance_close(struct net_device *dev);
int lance_start_xmit(struct sk_buff *skb, struct net_device *dev); netdev_tx_t lance_start_xmit(struct sk_buff *skb, struct net_device *dev);
void lance_set_multicast(struct net_device *dev); void lance_set_multicast(struct net_device *dev);
void lance_tx_timeout(struct net_device *dev, unsigned int txqueue); void lance_tx_timeout(struct net_device *dev, unsigned int txqueue);
#ifdef CONFIG_NET_POLL_CONTROLLER #ifdef CONFIG_NET_POLL_CONTROLLER
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment