summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfram Sang <wsa-dev@sang-engineering.com>2016-08-25 17:39:06 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-08-30 17:17:37 (GMT)
commit2652de71c5cb4f90819d8f59887bc1099956446e (patch)
tree3b78734852c5826ddecbad880a369ed2209da041
parentc86af711a6945ac00d005c66b4f29faba82bafe9 (diff)
downloadlinux-2652de71c5cb4f90819d8f59887bc1099956446e.tar.xz
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>
-rw-r--r--drivers/usb/host/fhci-hcd.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/usb/host/fhci-hcd.c b/drivers/usb/host/fhci-hcd.c
index 0960f41..55a0ae6 100644
--- a/drivers/usb/host/fhci-hcd.c
+++ b/drivers/usb/host/fhci-hcd.c
@@ -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;