diff options
author | Patrick McHardy <kaber@trash.net> | 2009-06-23 02:03:08 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-07-05 22:16:04 -0400 |
commit | 6ed106549d17474ca17a16057f4c0ed4eba5a7ca (patch) | |
tree | b98c09081509b3a9757339b6b66779e4126dfa29 /drivers/net/wan/hdlc_fr.c | |
parent | 0e8635a8e1f2d4a9e1bfc6c3b21419a5921e674f (diff) |
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>
Diffstat (limited to 'drivers/net/wan/hdlc_fr.c')
-rw-r--r-- | drivers/net/wan/hdlc_fr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wan/hdlc_fr.c b/drivers/net/wan/hdlc_fr.c index bfa0161a02d3..52438c76bf8a 100644 --- a/drivers/net/wan/hdlc_fr.c +++ b/drivers/net/wan/hdlc_fr.c | |||
@@ -421,7 +421,7 @@ static int pvc_xmit(struct sk_buff *skb, struct net_device *dev) | |||
421 | GFP_ATOMIC)) { | 421 | GFP_ATOMIC)) { |
422 | dev->stats.tx_dropped++; | 422 | dev->stats.tx_dropped++; |
423 | dev_kfree_skb(skb); | 423 | dev_kfree_skb(skb); |
424 | return 0; | 424 | return NETDEV_TX_OK; |
425 | } | 425 | } |
426 | skb_put(skb, pad); | 426 | skb_put(skb, pad); |
427 | memset(skb->data + len, 0, pad); | 427 | memset(skb->data + len, 0, pad); |
@@ -435,13 +435,13 @@ static int pvc_xmit(struct sk_buff *skb, struct net_device *dev) | |||
435 | dev->stats.tx_compressed++; | 435 | dev->stats.tx_compressed++; |
436 | skb->dev = pvc->frad; | 436 | skb->dev = pvc->frad; |
437 | dev_queue_xmit(skb); | 437 | dev_queue_xmit(skb); |
438 | return 0; | 438 | return NETDEV_TX_OK; |
439 | } | 439 | } |
440 | } | 440 | } |
441 | 441 | ||
442 | dev->stats.tx_dropped++; | 442 | dev->stats.tx_dropped++; |
443 | dev_kfree_skb(skb); | 443 | dev_kfree_skb(skb); |
444 | return 0; | 444 | return NETDEV_TX_OK; |
445 | } | 445 | } |
446 | 446 | ||
447 | static inline void fr_log_dlci_active(pvc_device *pvc) | 447 | static inline void fr_log_dlci_active(pvc_device *pvc) |