Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f4c46f11 authored by Wolfram Sang's avatar Wolfram Sang Committed by Greg Kroah-Hartman
Browse files

usb: host: xhci: don't print on ENOMEM



All kmalloc-based functions print enough information on failures.

Signed-off-by: default avatarWolfram Sang <wsa-dev@sang-engineering.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a35234b2
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -295,10 +295,8 @@ static int xhci_setup_msix(struct xhci_hcd *xhci)
	xhci->msix_entries =
		kmalloc((sizeof(struct msix_entry))*xhci->msix_count,
				GFP_KERNEL);
	if (!xhci->msix_entries) {
		xhci_err(xhci, "Failed to allocate MSI-X entries\n");
	if (!xhci->msix_entries)
		return -ENOMEM;
	}

	for (i = 0; i < xhci->msix_count; i++) {
		xhci->msix_entries[i].entry = i;