netdev: convert bulk of drivers to netdev_tx_t
In a couple of cases collapse some extra code like: int retval = NETDEV_TX_OK; ... return retval; into return NETDEV_TX_OK; Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

کامیت شده توسط
David S. Miller

والد
d0cf9c0dad
کامیت
61357325f3
@@ -238,7 +238,8 @@ static void chipset_init(struct net_device *dev)
|
||||
* xx xx xx xx ff ll 00 11 22 33 44 55 66 77
|
||||
* [ can-id ] [flags] [len] [can data (up to 8 bytes]
|
||||
*/
|
||||
static int sja1000_start_xmit(struct sk_buff *skb, struct net_device *dev)
|
||||
static netdev_tx_t sja1000_start_xmit(struct sk_buff *skb,
|
||||
struct net_device *dev)
|
||||
{
|
||||
struct sja1000_priv *priv = netdev_priv(dev);
|
||||
struct net_device_stats *stats = &dev->stats;
|
||||
|
مرجع در شماره جدید
Block a user