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/pcmcia/smc91c92_cs.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/pcmcia/smc91c92_cs.c')
-rw-r--r-- | drivers/net/pcmcia/smc91c92_cs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/pcmcia/smc91c92_cs.c b/drivers/net/pcmcia/smc91c92_cs.c index 37e05d3ab893..2f39244c17f2 100644 --- a/drivers/net/pcmcia/smc91c92_cs.c +++ b/drivers/net/pcmcia/smc91c92_cs.c | |||
@@ -1399,7 +1399,7 @@ static int smc_start_xmit(struct sk_buff *skb, struct net_device *dev) | |||
1399 | dev_kfree_skb (skb); | 1399 | dev_kfree_skb (skb); |
1400 | smc->saved_skb = NULL; | 1400 | smc->saved_skb = NULL; |
1401 | dev->stats.tx_dropped++; | 1401 | dev->stats.tx_dropped++; |
1402 | return 0; /* Do not re-queue this packet. */ | 1402 | return NETDEV_TX_OK; /* Do not re-queue this packet. */ |
1403 | } | 1403 | } |
1404 | /* A packet is now waiting. */ | 1404 | /* A packet is now waiting. */ |
1405 | smc->packets_waiting++; | 1405 | smc->packets_waiting++; |
@@ -1422,7 +1422,7 @@ static int smc_start_xmit(struct sk_buff *skb, struct net_device *dev) | |||
1422 | outw((ir&0xff00) | IM_ALLOC_INT, ioaddr + INTERRUPT); | 1422 | outw((ir&0xff00) | IM_ALLOC_INT, ioaddr + INTERRUPT); |
1423 | smc_hardware_send_packet(dev); /* Send the packet now.. */ | 1423 | smc_hardware_send_packet(dev); /* Send the packet now.. */ |
1424 | spin_unlock_irqrestore(&smc->lock, flags); | 1424 | spin_unlock_irqrestore(&smc->lock, flags); |
1425 | return 0; | 1425 | return NETDEV_TX_OK; |
1426 | } | 1426 | } |
1427 | } | 1427 | } |
1428 | 1428 | ||
@@ -1431,7 +1431,7 @@ static int smc_start_xmit(struct sk_buff *skb, struct net_device *dev) | |||
1431 | outw((IM_ALLOC_INT << 8) | (ir & 0xff00), ioaddr + INTERRUPT); | 1431 | outw((IM_ALLOC_INT << 8) | (ir & 0xff00), ioaddr + INTERRUPT); |
1432 | spin_unlock_irqrestore(&smc->lock, flags); | 1432 | spin_unlock_irqrestore(&smc->lock, flags); |
1433 | 1433 | ||
1434 | return 0; | 1434 | return NETDEV_TX_OK; |
1435 | } | 1435 | } |
1436 | 1436 | ||
1437 | /*====================================================================== | 1437 | /*====================================================================== |