aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorWolfram Sang <wsa-dev@sang-engineering.com>2016-08-11 17:14:41 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-08-15 09:54:26 -0400
commita131f41f5ba60e7a05fcbce304bc894845a4995a (patch)
tree55c805b425f88ee21e850de15855dfdb20be9aa0 /drivers/usb
parent2d40390337dcc4a02f06574a18119bfbeb798867 (diff)
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>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/misc/legousbtower.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/usb/misc/legousbtower.c b/drivers/usb/misc/legousbtower.c
index 7771be3ac178..52b41fb66792 100644
--- a/drivers/usb/misc/legousbtower.c
+++ b/drivers/usb/misc/legousbtower.c
@@ -881,20 +881,16 @@ static int tower_probe (struct usb_interface *interface, const struct usb_device
881 goto error; 881 goto error;
882 } 882 }
883 dev->interrupt_in_urb = usb_alloc_urb(0, GFP_KERNEL); 883 dev->interrupt_in_urb = usb_alloc_urb(0, GFP_KERNEL);
884 if (!dev->interrupt_in_urb) { 884 if (!dev->interrupt_in_urb)
885 dev_err(idev, "Couldn't allocate interrupt_in_urb\n");
886 goto error; 885 goto error;
887 }
888 dev->interrupt_out_buffer = kmalloc (write_buffer_size, GFP_KERNEL); 886 dev->interrupt_out_buffer = kmalloc (write_buffer_size, GFP_KERNEL);
889 if (!dev->interrupt_out_buffer) { 887 if (!dev->interrupt_out_buffer) {
890 dev_err(idev, "Couldn't allocate interrupt_out_buffer\n"); 888 dev_err(idev, "Couldn't allocate interrupt_out_buffer\n");
891 goto error; 889 goto error;
892 } 890 }
893 dev->interrupt_out_urb = usb_alloc_urb(0, GFP_KERNEL); 891 dev->interrupt_out_urb = usb_alloc_urb(0, GFP_KERNEL);
894 if (!dev->interrupt_out_urb) { 892 if (!dev->interrupt_out_urb)
895 dev_err(idev, "Couldn't allocate interrupt_out_urb\n");
896 goto error; 893 goto error;
897 }
898 dev->interrupt_in_interval = interrupt_in_interval ? interrupt_in_interval : dev->interrupt_in_endpoint->bInterval; 894 dev->interrupt_in_interval = interrupt_in_interval ? interrupt_in_interval : dev->interrupt_in_endpoint->bInterval;
899 dev->interrupt_out_interval = interrupt_out_interval ? interrupt_out_interval : dev->interrupt_out_endpoint->bInterval; 895 dev->interrupt_out_interval = interrupt_out_interval ? interrupt_out_interval : dev->interrupt_out_endpoint->bInterval;
900 896