Merge "usb: xhci: Replace HCD_RH_RUNNING() check in xhci_stop_endpoint"

This commit is contained in:
qctecmdr 2020-07-29 21:16:06 -07:00 committed by Gerrit - the friendly Code Review server
commit c50bb76a3e

View File

@ -5399,8 +5399,9 @@ int xhci_stop_endpoint(struct usb_device *udev, struct usb_host_endpoint *ep)
unsigned long flags;
int ret = 0;
if (!HCD_RH_RUNNING(hcd))
return 0;
ret = xhci_check_args(hcd, udev, ep, 1, true, __func__);
if (ret <= 0)
return ret;
cmd = xhci_alloc_command(xhci, true, GFP_NOIO);
if (!cmd)