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>
This commit is contained in:
parent
a35234b2a6
commit
f4c46f119a
|
@ -295,10 +295,8 @@ static int xhci_setup_msix(struct xhci_hcd *xhci)
|
||||||
xhci->msix_entries =
|
xhci->msix_entries =
|
||||||
kmalloc((sizeof(struct msix_entry))*xhci->msix_count,
|
kmalloc((sizeof(struct msix_entry))*xhci->msix_count,
|
||||||
GFP_KERNEL);
|
GFP_KERNEL);
|
||||||
if (!xhci->msix_entries) {
|
if (!xhci->msix_entries)
|
||||||
xhci_err(xhci, "Failed to allocate MSI-X entries\n");
|
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
|
||||||
|
|
||||||
for (i = 0; i < xhci->msix_count; i++) {
|
for (i = 0; i < xhci->msix_count; i++) {
|
||||||
xhci->msix_entries[i].entry = i;
|
xhci->msix_entries[i].entry = i;
|
||||||
|
|
Loading…
Reference in a new issue