usb: atm: cxacru: don't print on ENOMEM
authorWolfram Sang <wsa-dev@sang-engineering.com>
Thu, 25 Aug 2016 17:38:53 +0000 (19:38 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 Aug 2016 17:17:36 +0000 (19:17 +0200)
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>
drivers/usb/atm/cxacru.c

index 18b281d73a39ee2b2752eee42361164121d30364..f9fe86b6f7b5b6ac5e35d944500cd74781f6dd26 100644 (file)
@@ -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;