aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/u_ether.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/gadget/u_ether.c')
-rw-r--r--drivers/usb/gadget/u_ether.c6
1 files changed, 3 insertions, 3 deletions
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/*-------------------------------------------------------------------------*/