projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6b6f8a
)
usb: core: hcd: don't print on ENOMEM
author
Wolfram Sang
<wsa-dev@sang-engineering.com>
Thu, 25 Aug 2016 17:38:58 +0000
(19:38 +0200)
committer
Greg 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/core/hcd.c
patch
|
blob
|
history
diff --git
a/drivers/usb/core/hcd.c
b/drivers/usb/core/hcd.c
index
d2e3f65
..
a0c87b6
100644
(file)
--- a/
drivers/usb/core/hcd.c
+++ b/
drivers/usb/core/hcd.c
@@
-2517,10
+2517,8
@@
struct usb_hcd *usb_create_shared_hcd(const struct hc_driver *driver,
struct usb_hcd *hcd;
hcd = kzalloc(sizeof(*hcd) + driver->hcd_priv_size, GFP_KERNEL);
- if (!hcd) {
- dev_dbg (dev, "hcd alloc failed\n");
+ if (!hcd)
return NULL;
- }
if (primary_hcd == NULL) {
hcd->address0_mutex = kmalloc(sizeof(*hcd->address0_mutex),
GFP_KERNEL);