aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorWolfram Sang <wsa-dev@sang-engineering.com>2016-08-11 17:14:32 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-08-15 09:54:25 -0400
commit8ebbbf2e5dc01599dcbf520463e9688e74133ad3 (patch)
tree13d15935de21549c8533c41301c96f3813a6e953 /drivers/usb
parentc6a4c9fcfd2a1a6d14e46180d19e565aa2fbf362 (diff)
usb: atm: cxacru: 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')
-rw-r--r--drivers/usb/atm/cxacru.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/usb/atm/cxacru.c b/drivers/usb/atm/cxacru.c
index 0a866e90b49c..18b281d73a39 100644
--- a/drivers/usb/atm/cxacru.c
+++ b/drivers/usb/atm/cxacru.c
@@ -1168,13 +1168,11 @@ static int cxacru_bind(struct usbatm_data *usbatm_instance,
1168 } 1168 }
1169 instance->rcv_urb = usb_alloc_urb(0, GFP_KERNEL); 1169 instance->rcv_urb = usb_alloc_urb(0, GFP_KERNEL);
1170 if (!instance->rcv_urb) { 1170 if (!instance->rcv_urb) {
1171 usb_dbg(usbatm_instance, "cxacru_bind: no memory for rcv_urb\n");
1172 ret = -ENOMEM; 1171 ret = -ENOMEM;
1173 goto fail; 1172 goto fail;
1174 } 1173 }
1175 instance->snd_urb = usb_alloc_urb(0, GFP_KERNEL); 1174 instance->snd_urb = usb_alloc_urb(0, GFP_KERNEL);
1176 if (!instance->snd_urb) { 1175 if (!instance->snd_urb) {
1177 usb_dbg(usbatm_instance, "cxacru_bind: no memory for snd_urb\n");
1178 ret = -ENOMEM; 1176 ret = -ENOMEM;
1179 goto fail; 1177 goto fail;
1180 } 1178 }