summaryrefslogtreecommitdiff
path: root/drivers/usb/class
diff options
context:
space:
mode:
authorWolfram Sang <wsa-dev@sang-engineering.com>2016-08-12 00:14:35 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-08-15 16:54:25 +0300
commitc3014d33f58651b05cf5d24598ce7048bb202bee (patch)
tree252948a5b7a448e7ff74f8d8b74d01d60c98cd2d /drivers/usb/class
parent4675e961b8c457d6edc184f31ad1fd12bfbbe9ca (diff)
downloadlinux-c3014d33f58651b05cf5d24598ce7048bb202bee.tar.xz
usb: class: usbtmc: 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/class')
-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 917a55c4480d..22c235adacb3 100644
--- a/drivers/usb/class/usbtmc.c
+++ b/drivers/usb/class/usbtmc.c
@@ -1467,10 +1467,8 @@ static int usbtmc_probe(struct usb_interface *intf,
if (data->iin_ep_present) {
/* allocate int urb */
data->iin_urb = usb_alloc_urb(0, GFP_KERNEL);
- if (!data->iin_urb) {
- dev_err(&intf->dev, "Failed to allocate int urb\n");
+ if (!data->iin_urb)
goto error_register;
- }
/* will reference data in int urb */
kref_get(&data->kref);