diff options
author | Wolfram Sang <wsa-dev@sang-engineering.com> | 2016-08-11 17:14:40 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-08-15 09:54:26 -0400 |
commit | 2d40390337dcc4a02f06574a18119bfbeb798867 (patch) | |
tree | 1f87992c642cdff3eec22b961ff119671698e4fd /drivers/usb | |
parent | 5656bbb772e51f59bcd254cb8e5fd03977d66028 (diff) |
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>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/misc/ldusb.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/usb/misc/ldusb.c b/drivers/usb/misc/ldusb.c index cce22ff1c2eb..84890791c2f8 100644 --- a/drivers/usb/misc/ldusb.c +++ b/drivers/usb/misc/ldusb.c | |||
@@ -714,10 +714,8 @@ static int ld_usb_probe(struct usb_interface *intf, const struct usb_device_id * | |||
714 | goto error; | 714 | goto error; |
715 | } | 715 | } |
716 | dev->interrupt_in_urb = usb_alloc_urb(0, GFP_KERNEL); | 716 | dev->interrupt_in_urb = usb_alloc_urb(0, GFP_KERNEL); |
717 | if (!dev->interrupt_in_urb) { | 717 | if (!dev->interrupt_in_urb) |
718 | dev_err(&intf->dev, "Couldn't allocate interrupt_in_urb\n"); | ||
719 | goto error; | 718 | goto error; |
720 | } | ||
721 | dev->interrupt_out_endpoint_size = dev->interrupt_out_endpoint ? usb_endpoint_maxp(dev->interrupt_out_endpoint) : | 719 | dev->interrupt_out_endpoint_size = dev->interrupt_out_endpoint ? usb_endpoint_maxp(dev->interrupt_out_endpoint) : |
722 | udev->descriptor.bMaxPacketSize0; | 720 | udev->descriptor.bMaxPacketSize0; |
723 | dev->interrupt_out_buffer = kmalloc(write_buffer_size*dev->interrupt_out_endpoint_size, GFP_KERNEL); | 721 | dev->interrupt_out_buffer = kmalloc(write_buffer_size*dev->interrupt_out_endpoint_size, GFP_KERNEL); |
@@ -726,10 +724,8 @@ static int ld_usb_probe(struct usb_interface *intf, const struct usb_device_id * | |||
726 | goto error; | 724 | goto error; |
727 | } | 725 | } |
728 | dev->interrupt_out_urb = usb_alloc_urb(0, GFP_KERNEL); | 726 | dev->interrupt_out_urb = usb_alloc_urb(0, GFP_KERNEL); |
729 | if (!dev->interrupt_out_urb) { | 727 | if (!dev->interrupt_out_urb) |
730 | dev_err(&intf->dev, "Couldn't allocate interrupt_out_urb\n"); | ||
731 | goto error; | 728 | goto error; |
732 | } | ||
733 | dev->interrupt_in_interval = min_interrupt_in_interval > dev->interrupt_in_endpoint->bInterval ? min_interrupt_in_interval : dev->interrupt_in_endpoint->bInterval; | 729 | dev->interrupt_in_interval = min_interrupt_in_interval > dev->interrupt_in_endpoint->bInterval ? min_interrupt_in_interval : dev->interrupt_in_endpoint->bInterval; |
734 | if (dev->interrupt_out_endpoint) | 730 | if (dev->interrupt_out_endpoint) |
735 | dev->interrupt_out_interval = min_interrupt_out_interval > dev->interrupt_out_endpoint->bInterval ? min_interrupt_out_interval : dev->interrupt_out_endpoint->bInterval; | 731 | dev->interrupt_out_interval = min_interrupt_out_interval > dev->interrupt_out_endpoint->bInterval ? min_interrupt_out_interval : dev->interrupt_out_endpoint->bInterval; |