diff options
author | Patrick McHardy <kaber@trash.net> | 2009-07-05 22:23:38 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-07-05 22:23:38 -0400 |
commit | ec634fe328182a1a098585bfc7b69e5042bdb08d (patch) | |
tree | 02883aaee743af10d78d6d8fe9181944b4dd4529 /drivers/net/wan/farsync.c | |
parent | a73e76e23c20c05cb8c0b7ba8bc9daa04b05c80f (diff) |
net: convert remaining non-symbolic return values in ndo_start_xmit() functions
This patch converts the remaining occurences of raw return values to their
symbolic counterparts in ndo_start_xmit() functions that were missed by the
previous automatic conversion.
Additionally code that assumed the symbolic value of NETDEV_TX_OK to be zero
is changed to explicitly use NETDEV_TX_OK.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wan/farsync.c')
-rw-r--r-- | drivers/net/wan/farsync.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wan/farsync.c b/drivers/net/wan/farsync.c index 90c0a317d9d3..20a1237a3d74 100644 --- a/drivers/net/wan/farsync.c +++ b/drivers/net/wan/farsync.c | |||
@@ -2294,7 +2294,7 @@ fst_start_xmit(struct sk_buff *skb, struct net_device *dev) | |||
2294 | dbg(DBG_ASS, | 2294 | dbg(DBG_ASS, |
2295 | "Tried to transmit but no carrier on card %d port %d\n", | 2295 | "Tried to transmit but no carrier on card %d port %d\n", |
2296 | card->card_no, port->index); | 2296 | card->card_no, port->index); |
2297 | return 0; | 2297 | return NETDEV_TX_OK; |
2298 | } | 2298 | } |
2299 | 2299 | ||
2300 | /* Drop it if it's too big! MTU failure ? */ | 2300 | /* Drop it if it's too big! MTU failure ? */ |
@@ -2303,7 +2303,7 @@ fst_start_xmit(struct sk_buff *skb, struct net_device *dev) | |||
2303 | LEN_TX_BUFFER); | 2303 | LEN_TX_BUFFER); |
2304 | dev_kfree_skb(skb); | 2304 | dev_kfree_skb(skb); |
2305 | dev->stats.tx_errors++; | 2305 | dev->stats.tx_errors++; |
2306 | return 0; | 2306 | return NETDEV_TX_OK; |
2307 | } | 2307 | } |
2308 | 2308 | ||
2309 | /* | 2309 | /* |
@@ -2337,7 +2337,7 @@ fst_start_xmit(struct sk_buff *skb, struct net_device *dev) | |||
2337 | dev->stats.tx_errors++; | 2337 | dev->stats.tx_errors++; |
2338 | dbg(DBG_ASS, "Tx queue overflow card %d port %d\n", | 2338 | dbg(DBG_ASS, "Tx queue overflow card %d port %d\n", |
2339 | card->card_no, port->index); | 2339 | card->card_no, port->index); |
2340 | return 0; | 2340 | return NETDEV_TX_OK; |
2341 | } | 2341 | } |
2342 | 2342 | ||
2343 | /* | 2343 | /* |
@@ -2354,7 +2354,7 @@ fst_start_xmit(struct sk_buff *skb, struct net_device *dev) | |||
2354 | fst_q_work_item(&fst_work_txq, card->card_no); | 2354 | fst_q_work_item(&fst_work_txq, card->card_no); |
2355 | tasklet_schedule(&fst_tx_task); | 2355 | tasklet_schedule(&fst_tx_task); |
2356 | 2356 | ||
2357 | return 0; | 2357 | return NETDEV_TX_OK; |
2358 | } | 2358 | } |
2359 | 2359 | ||
2360 | /* | 2360 | /* |