From: Wolfram Sang Date: Thu, 25 Aug 2016 17:38:53 +0000 (+0200) Subject: usb: atm: cxacru: don't print on ENOMEM X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=04e75e49564426624adfd912ac58cd18ac4e1ff0;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git usb: atm: cxacru: don't print on ENOMEM All kmalloc-based functions print enough information on failures. Signed-off-by: Wolfram Sang Signed-off-by: Greg Kroah-Hartman --- 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, /* instance init */ instance = kzalloc(sizeof(*instance), GFP_KERNEL); - if (!instance) { - usb_dbg(usbatm_instance, "cxacru_bind: no memory for instance data\n"); + if (!instance) return -ENOMEM; - } instance->usbatm = usbatm_instance; instance->modem_type = (struct cxacru_modem_type *) id->driver_info;