net: use NETDEV_TX_OK instead of 0 in ndo_start_xmit() functions
This patch is the result of an automatic spatch transformation to convert all ndo_start_xmit() return values of 0 to NETDEV_TX_OK. Some occurences are missed by the automatic conversion, those will be handled in a seperate patch. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
0e8635a8e1
commit
6ed106549d
@@ -4111,14 +4111,14 @@ static int s2io_xmit(struct sk_buff *skb, struct net_device *dev)
|
||||
if (unlikely(skb->len <= 0)) {
|
||||
DBG_PRINT(TX_DBG, "%s:Buffer has no data..\n", dev->name);
|
||||
dev_kfree_skb_any(skb);
|
||||
return 0;
|
||||
return NETDEV_TX_OK;
|
||||
}
|
||||
|
||||
if (!is_s2io_card_up(sp)) {
|
||||
DBG_PRINT(TX_DBG, "%s: Card going down for reset\n",
|
||||
dev->name);
|
||||
dev_kfree_skb(skb);
|
||||
return 0;
|
||||
return NETDEV_TX_OK;
|
||||
}
|
||||
|
||||
queue = 0;
|
||||
@@ -4192,7 +4192,7 @@ static int s2io_xmit(struct sk_buff *skb, struct net_device *dev)
|
||||
s2io_stop_tx_queue(sp, fifo->fifo_no);
|
||||
dev_kfree_skb(skb);
|
||||
spin_unlock_irqrestore(&fifo->tx_lock, flags);
|
||||
return 0;
|
||||
return NETDEV_TX_OK;
|
||||
}
|
||||
|
||||
offload_type = s2io_offload_type(skb);
|
||||
@@ -4304,14 +4304,14 @@ static int s2io_xmit(struct sk_buff *skb, struct net_device *dev)
|
||||
if (sp->config.intr_type == MSI_X)
|
||||
tx_intr_handler(fifo);
|
||||
|
||||
return 0;
|
||||
return NETDEV_TX_OK;
|
||||
pci_map_failed:
|
||||
stats->pci_map_fail_cnt++;
|
||||
s2io_stop_tx_queue(sp, fifo->fifo_no);
|
||||
stats->mem_freed += skb->truesize;
|
||||
dev_kfree_skb(skb);
|
||||
spin_unlock_irqrestore(&fifo->tx_lock, flags);
|
||||
return 0;
|
||||
return NETDEV_TX_OK;
|
||||
}
|
||||
|
||||
static void
|
||||
|
Reference in New Issue
Block a user