Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Wolfram Sang and committed by
Greg Kroah-Hartman
e89549b9 ca47d8f3

+1 -4
+1 -4
drivers/staging/rtl8192u/r8192U_core.c
··· 1702 1702 } 1703 1703 if (bSend0Byte) { 1704 1704 tx_urb_zero = usb_alloc_urb(0, GFP_ATOMIC); 1705 - if (!tx_urb_zero) { 1706 - RT_TRACE(COMP_ERR, 1707 - "can't alloc urb for zero byte\n"); 1705 + if (!tx_urb_zero) 1708 1706 return -ENOMEM; 1709 - } 1710 1707 usb_fill_bulk_urb(tx_urb_zero, udev, 1711 1708 usb_sndbulkpipe(udev, idx_pipe), 1712 1709 &zero, 0, tx_zero_isr, dev);