aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wan
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/wan
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/wan')
-rw-r--r--drivers/net/wan/cycx_x25.c2
-rw-r--r--drivers/net/wan/hdlc_fr.c6
-rw-r--r--drivers/net/wan/sbni.c4
-rw-r--r--drivers/net/wan/x25_asy.c10
4 files changed, 11 insertions, 11 deletions
diff --git a/drivers/net/wan/cycx_x25.c b/drivers/net/wan/cycx_x25.c
index f525f9fe74db..4ae9bd297cc2 100644
--- a/drivers/net/wan/cycx_x25.c
+++ b/drivers/net/wan/cycx_x25.c
@@ -663,7 +663,7 @@ static int cycx_netdevice_hard_start_xmit(struct sk_buff *skb,
663free_packet: 663free_packet:
664 dev_kfree_skb(skb); 664 dev_kfree_skb(skb);
665 665
666 return 0; 666 return NETDEV_TX_OK;
667} 667}
668 668
669/* Get Ethernet-style interface statistics. 669/* Get Ethernet-style interface statistics.
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
447static inline void fr_log_dlci_active(pvc_device *pvc) 447static inline void fr_log_dlci_active(pvc_device *pvc)
diff --git a/drivers/net/wan/sbni.c b/drivers/net/wan/sbni.c
index 3fb9dbc88a1a..545178e6765d 100644
--- a/drivers/net/wan/sbni.c
+++ b/drivers/net/wan/sbni.c
@@ -465,7 +465,7 @@ sbni_start_xmit( struct sk_buff *skb, struct net_device *dev )
465 prepare_to_send( skb, p ); 465 prepare_to_send( skb, p );
466 spin_unlock( &nl->lock ); 466 spin_unlock( &nl->lock );
467 netif_start_queue( dev ); 467 netif_start_queue( dev );
468 return 0; 468 return NETDEV_TX_OK;
469 } 469 }
470 } 470 }
471 471
@@ -485,7 +485,7 @@ sbni_start_xmit( struct sk_buff *skb, struct net_device *dev )
485 prepare_to_send( skb, dev ); 485 prepare_to_send( skb, dev );
486 486
487 spin_unlock( &nl->lock ); 487 spin_unlock( &nl->lock );
488 return 0; 488 return NETDEV_TX_OK;
489} 489}
490 490
491#endif /* CONFIG_SBNI_MULTILINE */ 491#endif /* CONFIG_SBNI_MULTILINE */
diff --git a/drivers/net/wan/x25_asy.c b/drivers/net/wan/x25_asy.c
index d67e208ab375..1047920e742c 100644
--- a/drivers/net/wan/x25_asy.c
+++ b/drivers/net/wan/x25_asy.c
@@ -308,7 +308,7 @@ static int x25_asy_xmit(struct sk_buff *skb, struct net_device *dev)
308 printk(KERN_ERR "%s: xmit call when iface is down\n", 308 printk(KERN_ERR "%s: xmit call when iface is down\n",
309 dev->name); 309 dev->name);
310 kfree_skb(skb); 310 kfree_skb(skb);
311 return 0; 311 return NETDEV_TX_OK;
312 } 312 }
313 313
314 switch (skb->data[0]) { 314 switch (skb->data[0]) {
@@ -319,14 +319,14 @@ static int x25_asy_xmit(struct sk_buff *skb, struct net_device *dev)
319 if (err != LAPB_OK) 319 if (err != LAPB_OK)
320 printk(KERN_ERR "x25_asy: lapb_connect_request error - %d\n", err); 320 printk(KERN_ERR "x25_asy: lapb_connect_request error - %d\n", err);
321 kfree_skb(skb); 321 kfree_skb(skb);
322 return 0; 322 return NETDEV_TX_OK;
323 case 0x02: /* Disconnect request .. do nothing - hang up ?? */ 323 case 0x02: /* Disconnect request .. do nothing - hang up ?? */
324 err = lapb_disconnect_request(dev); 324 err = lapb_disconnect_request(dev);
325 if (err != LAPB_OK) 325 if (err != LAPB_OK)
326 printk(KERN_ERR "x25_asy: lapb_disconnect_request error - %d\n", err); 326 printk(KERN_ERR "x25_asy: lapb_disconnect_request error - %d\n", err);
327 default: 327 default:
328 kfree_skb(skb); 328 kfree_skb(skb);
329 return 0; 329 return NETDEV_TX_OK;
330 } 330 }
331 skb_pull(skb, 1); /* Remove control byte */ 331 skb_pull(skb, 1); /* Remove control byte */
332 /* 332 /*
@@ -344,9 +344,9 @@ static int x25_asy_xmit(struct sk_buff *skb, struct net_device *dev)
344 if (err != LAPB_OK) { 344 if (err != LAPB_OK) {
345 printk(KERN_ERR "x25_asy: lapb_data_request error - %d\n", err); 345 printk(KERN_ERR "x25_asy: lapb_data_request error - %d\n", err);
346 kfree_skb(skb); 346 kfree_skb(skb);
347 return 0; 347 return NETDEV_TX_OK;
348 } 348 }
349 return 0; 349 return NETDEV_TX_OK;
350} 350}
351 351
352 352