mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
watchdog: pcwd_usb: don't print error when allocating urb fails
kmalloc will print enough information in case of failure. Signed-off-by: Wolfram Sang <[email protected]> Reviewed-by: Guenter Roeck <[email protected]> Signed-off-by: Guenter Roeck <[email protected]> Signed-off-by: Wim Van Sebroeck <[email protected]>
This commit is contained in:
parent
c97344f73f
commit
d2a0015174
1 changed files with 1 additions and 3 deletions
|
|
@ -666,10 +666,8 @@ static int usb_pcwd_probe(struct usb_interface *interface,
|
|||
|
||||
/* allocate the urb's */
|
||||
usb_pcwd->intr_urb = usb_alloc_urb(0, GFP_KERNEL);
|
||||
if (!usb_pcwd->intr_urb) {
|
||||
pr_err("Out of memory\n");
|
||||
if (!usb_pcwd->intr_urb)
|
||||
goto error;
|
||||
}
|
||||
|
||||
/* initialise the intr urb's */
|
||||
usb_fill_int_urb(usb_pcwd->intr_urb, udev, pipe,
|
||||
|
|
|
|||
Loading…
Reference in a new issue