aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/gadget/f_phonet.c2
-rw-r--r--drivers/usb/gadget/u_ether.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/usb/gadget/f_phonet.c b/drivers/usb/gadget/f_phonet.c
index 96fb118355b0..d17f1082df96 100644
--- a/drivers/usb/gadget/f_phonet.c
+++ b/drivers/usb/gadget/f_phonet.c
@@ -256,7 +256,7 @@ out:
256 dev_kfree_skb(skb); 256 dev_kfree_skb(skb);
257 dev->stats.tx_dropped++; 257 dev->stats.tx_dropped++;
258 } 258 }
259 return 0; 259 return NETDEV_TX_OK;
260} 260}
261 261
262static int pn_net_mtu(struct net_device *dev, int new_mtu) 262static int pn_net_mtu(struct net_device *dev, int new_mtu)
diff --git a/drivers/usb/gadget/u_ether.c b/drivers/usb/gadget/u_ether.c
index 016f63b39028..aac69b591aeb 100644
--- a/drivers/usb/gadget/u_ether.c
+++ b/drivers/usb/gadget/u_ether.c
@@ -487,7 +487,7 @@ static int eth_start_xmit(struct sk_buff *skb, struct net_device *net)
487 487
488 if (!in) { 488 if (!in) {
489 dev_kfree_skb_any(skb); 489 dev_kfree_skb_any(skb);
490 return 0; 490 return NETDEV_TX_OK;
491 } 491 }
492 492
493 /* apply outgoing CDC or RNDIS filters */ 493 /* apply outgoing CDC or RNDIS filters */
@@ -506,7 +506,7 @@ static int eth_start_xmit(struct sk_buff *skb, struct net_device *net)
506 type = USB_CDC_PACKET_TYPE_ALL_MULTICAST; 506 type = USB_CDC_PACKET_TYPE_ALL_MULTICAST;
507 if (!(cdc_filter & type)) { 507 if (!(cdc_filter & type)) {
508 dev_kfree_skb_any(skb); 508 dev_kfree_skb_any(skb);
509 return 0; 509 return NETDEV_TX_OK;
510 } 510 }
511 } 511 }
512 /* ignores USB_CDC_PACKET_TYPE_DIRECTED */ 512 /* ignores USB_CDC_PACKET_TYPE_DIRECTED */
@@ -586,7 +586,7 @@ drop:
586 list_add(&req->list, &dev->tx_reqs); 586 list_add(&req->list, &dev->tx_reqs);
587 spin_unlock_irqrestore(&dev->req_lock, flags); 587 spin_unlock_irqrestore(&dev->req_lock, flags);
588 } 588 }
589 return 0; 589 return NETDEV_TX_OK;
590} 590}
591 591
592/*-------------------------------------------------------------------------*/ 592/*-------------------------------------------------------------------------*/