diff options
author | Wolfram Sang <wsa-dev@sang-engineering.com> | 2016-08-11 23:23:42 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-08-15 15:56:33 +0200 |
commit | e89549b91e484fe592af3ec2b4780bed716d1c2e (patch) | |
tree | 17043f35b43812e1780c09395ddc80ca3ca1c974 | |
parent | ca47d8f3ff7b3ee5ca04e03bc22052c3d1dbd5e2 (diff) | |
download | op-kernel-dev-e89549b91e484fe592af3ec2b4780bed716d1c2e.zip op-kernel-dev-e89549b91e484fe592af3ec2b4780bed716d1c2e.tar.gz |
staging: rtl8192u: r8192U_core: 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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/rtl8192u/r8192U_core.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/staging/rtl8192u/r8192U_core.c b/drivers/staging/rtl8192u/r8192U_core.c index dd0970f..7af1af8 100644 --- a/drivers/staging/rtl8192u/r8192U_core.c +++ b/drivers/staging/rtl8192u/r8192U_core.c @@ -1702,11 +1702,8 @@ short rtl8192_tx(struct net_device *dev, struct sk_buff *skb) } if (bSend0Byte) { tx_urb_zero = usb_alloc_urb(0, GFP_ATOMIC); - if (!tx_urb_zero) { - RT_TRACE(COMP_ERR, - "can't alloc urb for zero byte\n"); + if (!tx_urb_zero) return -ENOMEM; - } usb_fill_bulk_urb(tx_urb_zero, udev, usb_sndbulkpipe(udev, idx_pipe), &zero, 0, tx_zero_isr, dev); |