Merge "usb: xhci: Don't check for USB_STATE_NOTATTACHED in sec_event_ring_cleanup"

This commit is contained in:
qctecmdr 2020-06-11 10:59:14 -07:00 • committed by Gerrit - the friendly Code Review server
commit 5963622ada
2 changed files with 2 additions and 2 deletions

View file

@ -1947,7 +1947,7 @@ int xhci_sec_event_ring_cleanup(struct usb_device *udev, unsigned int intr_num)
{
struct usb_hcd *hcd = bus_to_hcd(udev->bus);
if (udev->state == USB_STATE_NOTATTACHED || !HCD_RH_RUNNING(hcd))
if (!HCD_RH_RUNNING(hcd))
return 0;
return sec_event_ring_cleanup(hcd_to_xhci(hcd), intr_num);

View file

@ -5390,7 +5390,7 @@ int xhci_stop_endpoint(struct usb_device *udev, struct usb_host_endpoint *ep)
unsigned long flags;
int ret = 0;
if (udev->state == USB_STATE_NOTATTACHED || !HCD_RH_RUNNING(hcd))
if (!HCD_RH_RUNNING(hcd))
return 0;
cmd = xhci_alloc_command(xhci, true, GFP_NOIO);