diff options
author | Wolfram Sang <wsa-dev@sang-engineering.com> | 2016-08-25 13:39:10 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-08-30 13:17:37 -0400 |
commit | f4c46f119ac6edbff2ec8ca8aad4beffc5631eac (patch) | |
tree | a5779a78aa043dea947f8d9c504460c444d42cfe /drivers/usb | |
parent | a35234b2a67363f0174322b9cf8b385d236e8822 (diff) |
usb: host: xhci: 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/xhci.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c index 01d96c9b3a75..1a4ca02729c2 100644 --- a/drivers/usb/host/xhci.c +++ b/drivers/usb/host/xhci.c | |||
@@ -295,10 +295,8 @@ static int xhci_setup_msix(struct xhci_hcd *xhci) | |||
295 | xhci->msix_entries = | 295 | xhci->msix_entries = |
296 | kmalloc((sizeof(struct msix_entry))*xhci->msix_count, | 296 | kmalloc((sizeof(struct msix_entry))*xhci->msix_count, |
297 | GFP_KERNEL); | 297 | GFP_KERNEL); |
298 | if (!xhci->msix_entries) { | 298 | if (!xhci->msix_entries) |
299 | xhci_err(xhci, "Failed to allocate MSI-X entries\n"); | ||
300 | return -ENOMEM; | 299 | return -ENOMEM; |
301 | } | ||
302 | 300 | ||
303 | for (i = 0; i < xhci->msix_count; i++) { | 301 | for (i = 0; i < xhci->msix_count; i++) { |
304 | xhci->msix_entries[i].entry = i; | 302 | xhci->msix_entries[i].entry = i; |