summaryrefslogtreecommitdiffstats
path: root/drivers/usb/atm
diff options
context:
space:
mode:
authorWolfram Sang <wsa-dev@sang-engineering.com>2016-08-11 23:14:33 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-08-15 15:54:25 +0200
commit7ff56857e352c0a2f1ecaf662dbe93e3434e9ada (patch)
tree2d8c37a012bbea364357318f01b841d2bdcb710f /drivers/usb/atm
parent8ebbbf2e5dc01599dcbf520463e9688e74133ad3 (diff)
downloadlinux-7ff56857e352c0a2f1ecaf662dbe93e3434e9ada.tar.gz
linux-7ff56857e352c0a2f1ecaf662dbe93e3434e9ada.tar.bz2
linux-7ff56857e352c0a2f1ecaf662dbe93e3434e9ada.zip
usb: atm: ueagle-atm: don't print error when allocating urb fails
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>
Diffstat (limited to 'drivers/usb/atm')
-rw-r--r--drivers/usb/atm/ueagle-atm.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/usb/atm/ueagle-atm.c b/drivers/usb/atm/ueagle-atm.c
index 4333dc576a12..f198291630d7 100644
--- a/drivers/usb/atm/ueagle-atm.c
+++ b/drivers/usb/atm/ueagle-atm.c
@@ -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),