]> git.karo-electronics.de Git - linux-beck.git/commitdiff
usb: atm: ueagle-atm: don't print error when allocating urb fails
authorWolfram Sang <wsa-dev@sang-engineering.com>
Thu, 11 Aug 2016 21:14:33 +0000 (23:14 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 Aug 2016 13:54:25 +0000 (15:54 +0200)
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>
drivers/usb/atm/ueagle-atm.c

index 4333dc576a12321f4cdd88808ffb7a98dc5efc41..f198291630d7ddd40ec58aee90f3b5d12a573040 100644 (file)
@@ -2203,10 +2203,8 @@ static int uea_boot(struct uea_softc *sc)
        }
 
        sc->urb_int = usb_alloc_urb(0, GFP_KERNEL);
-       if (!sc->urb_int) {
-               uea_err(INS_TO_USBDEV(sc), "cannot allocate interrupt URB\n");
+       if (!sc->urb_int)
                goto err1;
-       }
 
        usb_fill_int_urb(sc->urb_int, sc->usb_dev,
                         usb_rcvintpipe(sc->usb_dev, UEA_INTR_PIPE),