]> git.karo-electronics.de Git - linux-beck.git/commitdiff
watchdog: pcwd_usb: don't print error when allocating urb fails
authorWolfram Sang <wsa-dev@sang-engineering.com>
Thu, 11 Aug 2016 21:23:40 +0000 (23:23 +0200)
committerWim Van Sebroeck <wim@iguana.be>
Fri, 23 Sep 2016 06:43:06 +0000 (08:43 +0200)
kmalloc will print enough information in case of failure.

Signed-off-by: Wolfram Sang <wsa-dev@sang-engineering.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/pcwd_usb.c

index 68952d9ccf8394412654d76fc2c14edef3f74124..99ebf6ea3de648d881de4ef1f609d1f4d29f5ca0 100644 (file)
@@ -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,