diff options
author | Wolfram Sang <wsa-dev@sang-engineering.com> | 2016-08-25 13:39:08 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-08-30 13:17:37 -0400 |
commit | 314e672506e87d263404c69c6343b97ca2c59ded (patch) | |
tree | 9ff84d65421ce1c9223352f93416e86699393257 /drivers/usb | |
parent | 13dcf7800594171addb343c7a00493daaab4ed97 (diff) |
usb: host: uhci-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>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/host/uhci-hcd.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/usb/host/uhci-hcd.c b/drivers/usb/host/uhci-hcd.c index a7de8e8bb458..5d3d914ab4fb 100644 --- a/drivers/usb/host/uhci-hcd.c +++ b/drivers/usb/host/uhci-hcd.c | |||
@@ -601,11 +601,8 @@ static int uhci_start(struct usb_hcd *hcd) | |||
601 | 601 | ||
602 | uhci->frame_cpu = kcalloc(UHCI_NUMFRAMES, sizeof(*uhci->frame_cpu), | 602 | uhci->frame_cpu = kcalloc(UHCI_NUMFRAMES, sizeof(*uhci->frame_cpu), |
603 | GFP_KERNEL); | 603 | GFP_KERNEL); |
604 | if (!uhci->frame_cpu) { | 604 | if (!uhci->frame_cpu) |
605 | dev_err(uhci_dev(uhci), | ||
606 | "unable to allocate memory for frame pointers\n"); | ||
607 | goto err_alloc_frame_cpu; | 605 | goto err_alloc_frame_cpu; |
608 | } | ||
609 | 606 | ||
610 | uhci->td_pool = dma_pool_create("uhci_td", uhci_dev(uhci), | 607 | uhci->td_pool = dma_pool_create("uhci_td", uhci_dev(uhci), |
611 | sizeof(struct uhci_td), 16, 0); | 608 | sizeof(struct uhci_td), 16, 0); |