Commit 59e1200e authored by Wolfram Sang's avatar Wolfram Sang Committed by Greg Kroah-Hartman

usb: atm: ueagle-atm: don't print on ENOMEM

All kmalloc-based functions print enough information on failures.
Signed-off-by: default avatarWolfram Sang <wsa-dev@sang-engineering.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8b80c106
...@@ -2196,11 +2196,8 @@ static int uea_boot(struct uea_softc *sc) ...@@ -2196,11 +2196,8 @@ static int uea_boot(struct uea_softc *sc)
load_XILINX_firmware(sc); load_XILINX_firmware(sc);
intr = kmalloc(size, GFP_KERNEL); intr = kmalloc(size, GFP_KERNEL);
if (!intr) { if (!intr)
uea_err(INS_TO_USBDEV(sc),
"cannot allocate interrupt package\n");
goto err0; goto err0;
}
sc->urb_int = usb_alloc_urb(0, GFP_KERNEL); sc->urb_int = usb_alloc_urb(0, GFP_KERNEL);
if (!sc->urb_int) if (!sc->urb_int)
...@@ -2559,10 +2556,8 @@ static int uea_bind(struct usbatm_data *usbatm, struct usb_interface *intf, ...@@ -2559,10 +2556,8 @@ static int uea_bind(struct usbatm_data *usbatm, struct usb_interface *intf,
} }
sc = kzalloc(sizeof(struct uea_softc), GFP_KERNEL); sc = kzalloc(sizeof(struct uea_softc), GFP_KERNEL);
if (!sc) { if (!sc)
uea_err(usb, "uea_init: not enough memory !\n");
return -ENOMEM; return -ENOMEM;
}
sc->usb_dev = usb; sc->usb_dev = usb;
usbatm->driver_data = sc; usbatm->driver_data = sc;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment