mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 10:29:37 +00:00
xhci: simplify if statement to make it more readable
No functional change, De Morgan !(A && B) = (!A || !B) Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
92190e365a
commit
505f581c48
1 changed files with 2 additions and 1 deletions
|
@ -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.");
|
||||
|
|
Loading…
Reference in a new issue