usb: atm: ueagle-atm: don't print on ENOMEM
authorWolfram Sang <wsa-dev@sang-engineering.com>
Thu, 25 Aug 2016 17:38:55 +0000 (19:38 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 Aug 2016 17:17:36 +0000 (19:17 +0200)
All kmalloc-based functions print enough information on failures.

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 f198291..df67815 100644 (file)
@@ -2196,11 +2196,8 @@ static int uea_boot(struct uea_softc *sc)
                load_XILINX_firmware(sc);
 
        intr = kmalloc(size, GFP_KERNEL);
-       if (!intr) {
-               uea_err(INS_TO_USBDEV(sc),
-                      "cannot allocate interrupt package\n");
+       if (!intr)
                goto err0;
-       }
 
        sc->urb_int = usb_alloc_urb(0, GFP_KERNEL);
        if (!sc->urb_int)
@@ -2559,10 +2556,8 @@ static int uea_bind(struct usbatm_data *usbatm, struct usb_interface *intf,
        }
 
        sc = kzalloc(sizeof(struct uea_softc), GFP_KERNEL);
-       if (!sc) {
-               uea_err(usb, "uea_init: not enough memory !\n");
+       if (!sc)
                return -ENOMEM;
-       }
 
        sc->usb_dev = usb;
        usbatm->driver_data = sc;