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

usb: misc: ldusb: 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
2d403903 5656bbb7

+2 -6
+2 -6
drivers/usb/misc/ldusb.c
··· 714 714 goto error; 715 715 } 716 716 dev->interrupt_in_urb = usb_alloc_urb(0, GFP_KERNEL); 717 - if (!dev->interrupt_in_urb) { 718 - dev_err(&intf->dev, "Couldn't allocate interrupt_in_urb\n"); 717 + if (!dev->interrupt_in_urb) 719 718 goto error; 720 - } 721 719 dev->interrupt_out_endpoint_size = dev->interrupt_out_endpoint ? usb_endpoint_maxp(dev->interrupt_out_endpoint) : 722 720 udev->descriptor.bMaxPacketSize0; 723 721 dev->interrupt_out_buffer = kmalloc(write_buffer_size*dev->interrupt_out_endpoint_size, GFP_KERNEL); ··· 724 726 goto error; 725 727 } 726 728 dev->interrupt_out_urb = usb_alloc_urb(0, GFP_KERNEL); 727 - if (!dev->interrupt_out_urb) { 728 - dev_err(&intf->dev, "Couldn't allocate interrupt_out_urb\n"); 729 + if (!dev->interrupt_out_urb) 729 730 goto error; 730 - } 731 731 dev->interrupt_in_interval = min_interrupt_in_interval > dev->interrupt_in_endpoint->bInterval ? min_interrupt_in_interval : dev->interrupt_in_endpoint->bInterval; 732 732 if (dev->interrupt_out_endpoint) 733 733 dev->interrupt_out_interval = min_interrupt_out_interval > dev->interrupt_out_endpoint->bInterval ? min_interrupt_out_interval : dev->interrupt_out_endpoint->bInterval;