diff options
author | Lu Baolu <baolu.lu@linux.intel.com> | 2017-04-07 17:57:05 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-04-08 13:17:41 +0300 |
commit | 74e0b5649c26428a4b87f496cef0df8307eff364 (patch) | |
tree | a7d591137d7cab6506a11ca8fb7665608d109a0e /drivers/usb/host/xhci-hub.c | |
parent | 3969384cf88aa2726afb05ad5d1c6ec27e670f07 (diff) | |
download | linux-74e0b5649c26428a4b87f496cef0df8307eff364.tar.xz |
usb: xhci: remove error messages for failed memory allocation
Omit extra messages for memory allocation failure.
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host/xhci-hub.c')
-rw-r--r-- | drivers/usb/host/xhci-hub.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/usb/host/xhci-hub.c b/drivers/usb/host/xhci-hub.c index 0b88e76251eb..ab818bd5d0ac 100644 --- a/drivers/usb/host/xhci-hub.c +++ b/drivers/usb/host/xhci-hub.c @@ -392,10 +392,8 @@ static int xhci_stop_device(struct xhci_hcd *xhci, int slot_id, int suspend) trace_xhci_stop_device(virt_dev); cmd = xhci_alloc_command(xhci, false, true, GFP_NOIO); - if (!cmd) { - xhci_dbg(xhci, "Couldn't allocate command structure.\n"); + if (!cmd) return -ENOMEM; - } spin_lock_irqsave(&xhci->lock, flags); for (i = LAST_EP_INDEX; i > 0; i--) { |