diff options
Diffstat (limited to 'drivers/net/can/usb/kvaser_usb.c')
-rw-r--r-- | drivers/net/can/usb/kvaser_usb.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/can/usb/kvaser_usb.c b/drivers/net/can/usb/kvaser_usb.c index 5b58a4d87397..45cb9f3c1324 100644 --- a/drivers/net/can/usb/kvaser_usb.c +++ b/drivers/net/can/usb/kvaser_usb.c | |||
@@ -561,7 +561,6 @@ static int kvaser_usb_simple_msg_async(struct kvaser_usb_net_priv *priv, | |||
561 | 561 | ||
562 | buf = kmalloc(sizeof(struct kvaser_msg), GFP_ATOMIC); | 562 | buf = kmalloc(sizeof(struct kvaser_msg), GFP_ATOMIC); |
563 | if (!buf) { | 563 | if (!buf) { |
564 | netdev_err(netdev, "No memory left for USB buffer\n"); | ||
565 | usb_free_urb(urb); | 564 | usb_free_urb(urb); |
566 | return -ENOMEM; | 565 | return -ENOMEM; |
567 | } | 566 | } |
@@ -1268,7 +1267,6 @@ static netdev_tx_t kvaser_usb_start_xmit(struct sk_buff *skb, | |||
1268 | 1267 | ||
1269 | buf = kmalloc(sizeof(struct kvaser_msg), GFP_ATOMIC); | 1268 | buf = kmalloc(sizeof(struct kvaser_msg), GFP_ATOMIC); |
1270 | if (!buf) { | 1269 | if (!buf) { |
1271 | netdev_err(netdev, "No memory left for USB buffer\n"); | ||
1272 | stats->tx_dropped++; | 1270 | stats->tx_dropped++; |
1273 | goto nobufmem; | 1271 | goto nobufmem; |
1274 | } | 1272 | } |