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

Commit 505f581c authored by Mathias Nyman's avatar Mathias Nyman Committed by Greg Kroah-Hartman
Browse files

xhci: simplify if statement to make it more readable



No functional change, De Morgan !(A && B) = (!A || !B)

Signed-off-by: default avatarMathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 92190e36
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -913,7 +913,8 @@ void xhci_stop_endpoint_command_watchdog(unsigned long arg)
	spin_lock_irqsave(&xhci->lock, flags);
	spin_lock_irqsave(&xhci->lock, flags);


	ep->stop_cmds_pending--;
	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,
		xhci_dbg_trace(xhci, trace_xhci_dbg_cancel_urb,
				"Stop EP timer ran, but no command pending, "
				"Stop EP timer ran, but no command pending, "
				"exiting.");
				"exiting.");