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

usb: misc: legousbtower: 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
a131f41f 2d403903

+2 -6
+2 -6
drivers/usb/misc/legousbtower.c
··· 881 881 goto error; 882 882 } 883 883 dev->interrupt_in_urb = usb_alloc_urb(0, GFP_KERNEL); 884 - if (!dev->interrupt_in_urb) { 885 - dev_err(idev, "Couldn't allocate interrupt_in_urb\n"); 884 + if (!dev->interrupt_in_urb) 886 885 goto error; 887 - } 888 886 dev->interrupt_out_buffer = kmalloc (write_buffer_size, GFP_KERNEL); 889 887 if (!dev->interrupt_out_buffer) { 890 888 dev_err(idev, "Couldn't allocate interrupt_out_buffer\n"); 891 889 goto error; 892 890 } 893 891 dev->interrupt_out_urb = usb_alloc_urb(0, GFP_KERNEL); 894 - if (!dev->interrupt_out_urb) { 895 - dev_err(idev, "Couldn't allocate interrupt_out_urb\n"); 892 + if (!dev->interrupt_out_urb) 896 893 goto error; 897 - } 898 894 dev->interrupt_in_interval = interrupt_in_interval ? interrupt_in_interval : dev->interrupt_in_endpoint->bInterval; 899 895 dev->interrupt_out_interval = interrupt_out_interval ? interrupt_out_interval : dev->interrupt_out_endpoint->bInterval; 900 896