usb-xhci: fix bit test
authorLai Jiangshan <laijs@cn.fujitsu.com>
Mon, 2 Apr 2012 06:35:30 +0000 (14:35 +0800)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 26 Apr 2012 10:21:16 +0000 (12:21 +0200)
use & instead of the wrong &&

Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb/hcd-xhci.c

index fd13bbab279fab55e1457a86091af4fd46c7a918..5cf1a646993f9fb0b93f1067855014ecbdaa30e8 100644 (file)
@@ -501,7 +501,7 @@ static void xhci_irq_update(XHCIState *xhci)
     int level = 0;
 
     if (xhci->iman & IMAN_IP && xhci->iman & IMAN_IE &&
-        xhci->usbcmd && USBCMD_INTE) {
+        xhci->usbcmd & USBCMD_INTE) {
         level = 1;
     }