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/irda/ali-ircc.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/irda/ali-ircc.c')
-rw-r--r-- | drivers/net/irda/ali-ircc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/irda/ali-ircc.c b/drivers/net/irda/ali-ircc.c index ad1795580028..709835782443 100644 --- a/drivers/net/irda/ali-ircc.c +++ b/drivers/net/irda/ali-ircc.c | |||
@@ -1466,7 +1466,7 @@ static int ali_ircc_fir_hard_xmit(struct sk_buff *skb, struct net_device *dev) | |||
1466 | dev->trans_start = jiffies; | 1466 | dev->trans_start = jiffies; |
1467 | spin_unlock_irqrestore(&self->lock, flags); | 1467 | spin_unlock_irqrestore(&self->lock, flags); |
1468 | dev_kfree_skb(skb); | 1468 | dev_kfree_skb(skb); |
1469 | return 0; | 1469 | return NETDEV_TX_OK; |
1470 | } else | 1470 | } else |
1471 | self->new_speed = speed; | 1471 | self->new_speed = speed; |
1472 | } | 1472 | } |
@@ -1577,7 +1577,7 @@ static int ali_ircc_fir_hard_xmit(struct sk_buff *skb, struct net_device *dev) | |||
1577 | dev_kfree_skb(skb); | 1577 | dev_kfree_skb(skb); |
1578 | 1578 | ||
1579 | IRDA_DEBUG(1, "%s(), ----------------- End ------------------\n", __func__ ); | 1579 | IRDA_DEBUG(1, "%s(), ----------------- End ------------------\n", __func__ ); |
1580 | return 0; | 1580 | return NETDEV_TX_OK; |
1581 | } | 1581 | } |
1582 | 1582 | ||
1583 | 1583 | ||
@@ -1991,7 +1991,7 @@ static int ali_ircc_sir_hard_xmit(struct sk_buff *skb, struct net_device *dev) | |||
1991 | dev->trans_start = jiffies; | 1991 | dev->trans_start = jiffies; |
1992 | spin_unlock_irqrestore(&self->lock, flags); | 1992 | spin_unlock_irqrestore(&self->lock, flags); |
1993 | dev_kfree_skb(skb); | 1993 | dev_kfree_skb(skb); |
1994 | return 0; | 1994 | return NETDEV_TX_OK; |
1995 | } else | 1995 | } else |
1996 | self->new_speed = speed; | 1996 | self->new_speed = speed; |
1997 | } | 1997 | } |
@@ -2015,7 +2015,7 @@ static int ali_ircc_sir_hard_xmit(struct sk_buff *skb, struct net_device *dev) | |||
2015 | 2015 | ||
2016 | IRDA_DEBUG(2, "%s(), ----------------- End ------------------\n", __func__ ); | 2016 | IRDA_DEBUG(2, "%s(), ----------------- End ------------------\n", __func__ ); |
2017 | 2017 | ||
2018 | return 0; | 2018 | return NETDEV_TX_OK; |
2019 | } | 2019 | } |
2020 | 2020 | ||
2021 | 2021 | ||