diff options
author | Wolfram Sang <wsa-dev@sang-engineering.com> | 2016-08-25 13:38:58 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-08-30 13:17:36 -0400 |
commit | 36af2db8709246a00670314feca728a014e320bd (patch) | |
tree | 5ecfec3fd8723f0836c9d2f69b0f1d7f747fb597 /drivers/usb | |
parent | f6b6f8a09f60e668de013eadc8d2a3d52bf36795 (diff) |
usb: core: 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/core/hcd.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/usb/core/hcd.c b/drivers/usb/core/hcd.c index d2e3f655c26f..a0c87b617edd 100644 --- 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, | |||
2517 | struct usb_hcd *hcd; | 2517 | struct usb_hcd *hcd; |
2518 | 2518 | ||
2519 | hcd = kzalloc(sizeof(*hcd) + driver->hcd_priv_size, GFP_KERNEL); | 2519 | hcd = kzalloc(sizeof(*hcd) + driver->hcd_priv_size, GFP_KERNEL); |
2520 | if (!hcd) { | 2520 | if (!hcd) |
2521 | dev_dbg (dev, "hcd alloc failed\n"); | ||
2522 | return NULL; | 2521 | return NULL; |
2523 | } | ||
2524 | if (primary_hcd == NULL) { | 2522 | if (primary_hcd == NULL) { |
2525 | hcd->address0_mutex = kmalloc(sizeof(*hcd->address0_mutex), | 2523 | hcd->address0_mutex = kmalloc(sizeof(*hcd->address0_mutex), |
2526 | GFP_KERNEL); | 2524 | GFP_KERNEL); |