summaryrefslogtreecommitdiff
path: root/drivers/usb/usb-skeleton.c
diff options
context:
space:
mode:
authorWolfram Sang <wsa-dev@sang-engineering.com>2016-08-12 00:14:47 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-08-15 16:54:27 +0300
commit2bd07d3c21058db28f6e8ad41b7854f5eaffa451 (patch)
treebe04475d6419699e8f06e5247c299863a6a525bf /drivers/usb/usb-skeleton.c
parent792f94f5473beefd7baee437438b6450ac8a35b4 (diff)
downloadlinux-2bd07d3c21058db28f6e8ad41b7854f5eaffa451.tar.xz
usb: usb-skeleton: 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/usb-skeleton.c')
-rw-r--r--drivers/usb/usb-skeleton.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/usb/usb-skeleton.c b/drivers/usb/usb-skeleton.c
index 545d09b8081d..89e02a7529b7 100644
--- a/drivers/usb/usb-skeleton.c
+++ b/drivers/usb/usb-skeleton.c
@@ -532,11 +532,8 @@ static int skel_probe(struct usb_interface *interface,
goto error;
}
dev->bulk_in_urb = usb_alloc_urb(0, GFP_KERNEL);
- if (!dev->bulk_in_urb) {
- dev_err(&interface->dev,
- "Could not allocate bulk_in_urb\n");
+ if (!dev->bulk_in_urb)
goto error;
- }
}
if (!dev->bulk_out_endpointAddr &&