mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 04:42:04 -04:00
Merge "usb: xhci: Don't check for USB_STATE_NOTATTACHED in sec_event_ring_cleanup"
This commit is contained in:
commit
5963622ada
2 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue