xhci: Fix a logical vs bitwise AND bug
Subsystems (3)
PATCH 1/1 xhci: Fix a logical vs bitwise AND bug
The intent was to test whether the flag was set.
Signed-off-by Dan Carpenter <[email protected]>
drivers/usb/host/xhci.c +1 -1
@@ -659,7 +659,7 @@ void xhci_shutdown(struct usb_hcd *hcd) {struct xhci_hcd *xhci =hcd_to_xhci (hcd); -if (xhci->quirks &&XHCI_SPURIOUS_REBOOT ) +if (xhci->quirks &XHCI_SPURIOUS_REBOOT )usb_disable_xhci_ports (to_pci_dev (hcd->self.controller));spin_lock_irq (&xhci->lock);