|
@@ -913,7 +913,8 @@ void xhci_stop_endpoint_command_watchdog(unsigned long arg)
|
|
|
spin_lock_irqsave(&xhci->lock, flags);
|
|
|
|
|
|
ep->stop_cmds_pending--;
|
|
|
- if (!(ep->stop_cmds_pending == 0 && (ep->ep_state & EP_HALT_PENDING))) {
|
|
|
+
|
|
|
+ if (ep->stop_cmds_pending || !(ep->ep_state & EP_HALT_PENDING)) {
|
|
|
xhci_dbg_trace(xhci, trace_xhci_dbg_cancel_urb,
|
|
|
"Stop EP timer ran, but no command pending, "
|
|
|
"exiting.");
|