usb: host: fhci-hcd: don't print on ENOMEM
authorWolfram Sang <wsa-dev@sang-engineering.com>
Thu, 25 Aug 2016 17:39:06 +0000 (19:39 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 Aug 2016 17:17:37 +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/host/fhci-hcd.c

index 0960f41..55a0ae6 100644 (file)
@@ -310,10 +310,8 @@ static struct fhci_usb *fhci_create_lld(struct fhci_hcd *fhci)
 
        /* allocate memory for SCC data structure */
        usb = kzalloc(sizeof(*usb), GFP_KERNEL);
-       if (!usb) {
-               fhci_err(fhci, "no memory for SCC data struct\n");
+       if (!usb)
                return NULL;
-       }
 
        usb->fhci = fhci;
        usb->hc_list = fhci->hc_list;