Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Wolfram Sang and committed by
Greg Kroah-Hartman
f4c46f11 a35234b2

+1 -3
+1 -3
drivers/usb/host/xhci.c
··· 295 295 xhci->msix_entries = 296 296 kmalloc((sizeof(struct msix_entry))*xhci->msix_count, 297 297 GFP_KERNEL); 298 - if (!xhci->msix_entries) { 299 - xhci_err(xhci, "Failed to allocate MSI-X entries\n"); 298 + if (!xhci->msix_entries) 300 299 return -ENOMEM; 301 - } 302 300 303 301 for (i = 0; i < xhci->msix_count; i++) { 304 302 xhci->msix_entries[i].entry = i;