* [patch] xhci: Fix a logical vs bitwise AND bug
@ 2012-08-13 16:57 Dan Carpenter
0 siblings, 0 replies; only message in thread
From: Dan Carpenter @ 2012-08-13 16:57 UTC (permalink / raw)
To: kernel-janitors
The intent was to test whether the flag was set.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c
index c59d5b5..617b0a7 100644
--- a/drivers/usb/host/xhci.c
+++ b/drivers/usb/host/xhci.c
@@ -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);
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2012-08-13 16:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-13 16:57 [patch] xhci: Fix a logical vs bitwise AND bug Dan Carpenter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).