aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWolfram Sang <wsa-dev@sang-engineering.com>2016-08-25 13:38:55 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-08-30 13:17:36 -0400
commit59e1200ecb5bfc42da895f423b16b01f9cf92e64 (patch)
treed0ce7929267f7a72325b65854c6079d15f1ff24a
parent8b80c106a0c8b42115c15979b472b25dfecfac32 (diff)
usb: atm: ueagle-atm: don't print on ENOMEM
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>
-rw-r--r--drivers/usb/atm/ueagle-atm.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/usb/atm/ueagle-atm.c b/drivers/usb/atm/ueagle-atm.c
index f198291630d7..df67815f74e6 100644
--- a/drivers/usb/atm/ueagle-atm.c
+++ b/drivers/usb/atm/ueagle-atm.c
@@ -2196,11 +2196,8 @@ static int uea_boot(struct uea_softc *sc)
2196 load_XILINX_firmware(sc); 2196 load_XILINX_firmware(sc);
2197 2197
2198 intr = kmalloc(size, GFP_KERNEL); 2198 intr = kmalloc(size, GFP_KERNEL);
2199 if (!intr) { 2199 if (!intr)
2200 uea_err(INS_TO_USBDEV(sc),
2201 "cannot allocate interrupt package\n");
2202 goto err0; 2200 goto err0;
2203 }
2204 2201
2205 sc->urb_int = usb_alloc_urb(0, GFP_KERNEL); 2202 sc->urb_int = usb_alloc_urb(0, GFP_KERNEL);
2206 if (!sc->urb_int) 2203 if (!sc->urb_int)
@@ -2559,10 +2556,8 @@ static int uea_bind(struct usbatm_data *usbatm, struct usb_interface *intf,
2559 } 2556 }
2560 2557
2561 sc = kzalloc(sizeof(struct uea_softc), GFP_KERNEL); 2558 sc = kzalloc(sizeof(struct uea_softc), GFP_KERNEL);
2562 if (!sc) { 2559 if (!sc)
2563 uea_err(usb, "uea_init: not enough memory !\n");
2564 return -ENOMEM; 2560 return -ENOMEM;
2565 }
2566 2561
2567 sc->usb_dev = usb; 2562 sc->usb_dev = usb;
2568 usbatm->driver_data = sc; 2563 usbatm->driver_data = sc;