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

Commit da53231c authored by Jack Pham's avatar Jack Pham
Browse files

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



Similar to xhci_stop_endpoint(), this API is called when a device
is removed. The check for udev->state == USB_STATE_NOTATTACHED
was added by mistake and should be removed.

Change-Id: Ie0df67c3139bd585f098215d093169c961710349
Signed-off-by: default avatarJack Pham <jackp@codeaurora.org>
parent 5d938924
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);