aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorWolfram Sang <wsa-dev@sang-engineering.com>2016-08-25 13:38:57 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-08-30 13:17:36 -0400
commitf6b6f8a09f60e668de013eadc8d2a3d52bf36795 (patch)
treea3211498cc54717f4aa6663cf1c8327b8830b25b /drivers/usb
parent52879bb190bbda82603c857d37e3826b3aa2832a (diff)
usb: class: usbtmc: don't print on ENOMEM
All kmalloc-based functions print enough information on failures. 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/class/usbtmc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/usb/class/usbtmc.c b/drivers/usb/class/usbtmc.c
index 22c235adacb3..da4f2509f567 100644
--- a/drivers/usb/class/usbtmc.c
+++ b/drivers/usb/class/usbtmc.c
@@ -1476,10 +1476,8 @@ static int usbtmc_probe(struct usb_interface *intf,
1476 /* allocate buffer for interrupt in */ 1476 /* allocate buffer for interrupt in */
1477 data->iin_buffer = kmalloc(data->iin_wMaxPacketSize, 1477 data->iin_buffer = kmalloc(data->iin_wMaxPacketSize,
1478 GFP_KERNEL); 1478 GFP_KERNEL);
1479 if (!data->iin_buffer) { 1479 if (!data->iin_buffer)
1480 dev_err(&intf->dev, "Failed to allocate int buf\n");
1481 goto error_register; 1480 goto error_register;
1482 }
1483 1481
1484 /* fill interrupt urb */ 1482 /* fill interrupt urb */
1485 usb_fill_int_urb(data->iin_urb, data->usb_dev, 1483 usb_fill_int_urb(data->iin_urb, data->usb_dev,