aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/smc9194.c
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2009-06-23 02:03:08 -0400
committerDavid S. Miller <davem@davemloft.net>2009-07-05 22:16:04 -0400
commit6ed106549d17474ca17a16057f4c0ed4eba5a7ca (patch)
treeb98c09081509b3a9757339b6b66779e4126dfa29 /drivers/net/smc9194.c
parent0e8635a8e1f2d4a9e1bfc6c3b21419a5921e674f (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/smc9194.c')
-rw-r--r--drivers/net/smc9194.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/smc9194.c b/drivers/net/smc9194.c
index e02471b2f2b5..0a1b6f401087 100644
--- a/drivers/net/smc9194.c
+++ b/drivers/net/smc9194.c
@@ -512,7 +512,7 @@ static int smc_wait_to_send_packet( struct sk_buff * skb, struct net_device * de
512 if (length < ETH_ZLEN) { 512 if (length < ETH_ZLEN) {
513 if (skb_padto(skb, ETH_ZLEN)) { 513 if (skb_padto(skb, ETH_ZLEN)) {
514 netif_wake_queue(dev); 514 netif_wake_queue(dev);
515 return 0; 515 return NETDEV_TX_OK;
516 } 516 }
517 length = ETH_ZLEN; 517 length = ETH_ZLEN;
518 } 518 }
@@ -534,7 +534,7 @@ static int smc_wait_to_send_packet( struct sk_buff * skb, struct net_device * de
534 lp->saved_skb = NULL; 534 lp->saved_skb = NULL;
535 /* this IS an error, but, i don't want the skb saved */ 535 /* this IS an error, but, i don't want the skb saved */
536 netif_wake_queue(dev); 536 netif_wake_queue(dev);
537 return 0; 537 return NETDEV_TX_OK;
538 } 538 }
539 /* either way, a packet is waiting now */ 539 /* either way, a packet is waiting now */
540 lp->packets_waiting++; 540 lp->packets_waiting++;
@@ -571,12 +571,12 @@ static int smc_wait_to_send_packet( struct sk_buff * skb, struct net_device * de
571 SMC_ENABLE_INT( IM_ALLOC_INT ); 571 SMC_ENABLE_INT( IM_ALLOC_INT );
572 PRINTK2((CARDNAME": memory allocation deferred. \n")); 572 PRINTK2((CARDNAME": memory allocation deferred. \n"));
573 /* it's deferred, but I'll handle it later */ 573 /* it's deferred, but I'll handle it later */
574 return 0; 574 return NETDEV_TX_OK;
575 } 575 }
576 /* or YES! I can send the packet now.. */ 576 /* or YES! I can send the packet now.. */
577 smc_hardware_send_packet(dev); 577 smc_hardware_send_packet(dev);
578 netif_wake_queue(dev); 578 netif_wake_queue(dev);
579 return 0; 579 return NETDEV_TX_OK;
580} 580}
581 581
582/* 582/*