Commit d2a00151 authored by Wolfram Sang's avatar Wolfram Sang Committed by Wim Van Sebroeck

watchdog: pcwd_usb: don't print error when allocating urb fails

kmalloc will print enough information in case of failure.
Signed-off-by: default avatarWolfram Sang <wsa-dev@sang-engineering.com>
Reviewed-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarWim Van Sebroeck <wim@iguana.be>
parent c97344f7
...@@ -666,10 +666,8 @@ static int usb_pcwd_probe(struct usb_interface *interface, ...@@ -666,10 +666,8 @@ static int usb_pcwd_probe(struct usb_interface *interface,
/* allocate the urb's */ /* allocate the urb's */
usb_pcwd->intr_urb = usb_alloc_urb(0, GFP_KERNEL); usb_pcwd->intr_urb = usb_alloc_urb(0, GFP_KERNEL);
if (!usb_pcwd->intr_urb) { if (!usb_pcwd->intr_urb)
pr_err("Out of memory\n");
goto error; goto error;
}
/* initialise the intr urb's */ /* initialise the intr urb's */
usb_fill_int_urb(usb_pcwd->intr_urb, udev, pipe, usb_fill_int_urb(usb_pcwd->intr_urb, udev, pipe,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment