aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWolfram Sang <wsa-dev@sang-engineering.com>2016-08-11 17:05:25 -0400
committerDavid S. Miller <davem@davemloft.net>2016-08-13 17:53:39 -0400
commit7fe7cfa43a99056ffa52aed4053693dedc3cbbbb (patch)
tree7b129f4270474dce9ed8cf56919356b2dc6d04a8
parent2479204b256392a170ba819411b14c3da0bee1b5 (diff)
net: can: usb: usb_8dev: don't print error when allocating urb fails
kmalloc will print enough information in case of failure. Signed-off-by: Wolfram Sang <wsa-dev@sang-engineering.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/can/usb/usb_8dev.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/net/can/usb/usb_8dev.c b/drivers/net/can/usb/usb_8dev.c
index a731720f1d13..108a30e15097 100644
--- a/drivers/net/can/usb/usb_8dev.c
+++ b/drivers/net/can/usb/usb_8dev.c
@@ -623,10 +623,8 @@ static netdev_tx_t usb_8dev_start_xmit(struct sk_buff *skb,
623 623
624 /* create a URB, and a buffer for it, and copy the data to the URB */ 624 /* create a URB, and a buffer for it, and copy the data to the URB */
625 urb = usb_alloc_urb(0, GFP_ATOMIC); 625 urb = usb_alloc_urb(0, GFP_ATOMIC);
626 if (!urb) { 626 if (!urb)
627 netdev_err(netdev, "No memory left for URBs\n");
628 goto nomem; 627 goto nomem;
629 }
630 628
631 buf = usb_alloc_coherent(priv->udev, size, GFP_ATOMIC, 629 buf = usb_alloc_coherent(priv->udev, size, GFP_ATOMIC,
632 &urb->transfer_dma); 630 &urb->transfer_dma);
@@ -748,7 +746,6 @@ static int usb_8dev_start(struct usb_8dev_priv *priv)
748 /* create a URB, and a buffer for it */ 746 /* create a URB, and a buffer for it */
749 urb = usb_alloc_urb(0, GFP_KERNEL); 747 urb = usb_alloc_urb(0, GFP_KERNEL);
750 if (!urb) { 748 if (!urb) {
751 netdev_err(netdev, "No memory left for URBs\n");
752 err = -ENOMEM; 749 err = -ENOMEM;
753 break; 750 break;
754 } 751 }