aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorWolfram Sang <wsa-dev@sang-engineering.com>2016-08-25 13:38:53 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-08-30 13:17:36 -0400
commit04e75e49564426624adfd912ac58cd18ac4e1ff0 (patch)
tree245bddbc03898e3369bd7a81e17257f561e53b3a /drivers/usb
parent78a4a0d22f7cfdf743eee76d177dffc0f8decb8d (diff)
usb: atm: cxacru: 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>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/atm/cxacru.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/usb/atm/cxacru.c b/drivers/usb/atm/cxacru.c
index 18b281d73a39..f9fe86b6f7b5 100644
--- a/drivers/usb/atm/cxacru.c
+++ b/drivers/usb/atm/cxacru.c
@@ -1139,10 +1139,8 @@ static int cxacru_bind(struct usbatm_data *usbatm_instance,
1139 1139
1140 /* instance init */ 1140 /* instance init */
1141 instance = kzalloc(sizeof(*instance), GFP_KERNEL); 1141 instance = kzalloc(sizeof(*instance), GFP_KERNEL);
1142 if (!instance) { 1142 if (!instance)
1143 usb_dbg(usbatm_instance, "cxacru_bind: no memory for instance data\n");
1144 return -ENOMEM; 1143 return -ENOMEM;
1145 }
1146 1144
1147 instance->usbatm = usbatm_instance; 1145 instance->usbatm = usbatm_instance;
1148 instance->modem_type = (struct cxacru_modem_type *) id->driver_info; 1146 instance->modem_type = (struct cxacru_modem_type *) id->driver_info;