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

usb: misc: iowarrior: 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
5656bbb7 d3ec72b0

+1 -5
+1 -5
drivers/usb/misc/iowarrior.c
··· 413 413 int_out_urb = usb_alloc_urb(0, GFP_KERNEL); 414 414 if (!int_out_urb) { 415 415 retval = -ENOMEM; 416 - dev_dbg(&dev->interface->dev, 417 - "Unable to allocate urb\n"); 418 416 goto error_no_urb; 419 417 } 420 418 buf = usb_alloc_coherent(dev->udev, dev->report_size, ··· 810 812 811 813 /* create the urb and buffer for reading */ 812 814 dev->int_in_urb = usb_alloc_urb(0, GFP_KERNEL); 813 - if (!dev->int_in_urb) { 814 - dev_err(&interface->dev, "Couldn't allocate interrupt_in_urb\n"); 815 + if (!dev->int_in_urb) 815 816 goto error; 816 - } 817 817 dev->int_in_buffer = kmalloc(dev->report_size, GFP_KERNEL); 818 818 if (!dev->int_in_buffer) { 819 819 dev_err(&interface->dev, "Couldn't allocate int_in_buffer\n");