forked from Minki/linux
usb: host: fhci-hcd: 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>
This commit is contained in:
parent
c86af711a6
commit
2652de71c5
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user