summary refs log tree commit diff stats
path: root/hw/usb/hcd-xhci.c
diff options
context:
space:
mode:
authorLai Jiangshan <laijs@cn.fujitsu.com>2012-04-02 14:35:30 +0800
committerGerd Hoffmann <kraxel@redhat.com>2012-04-26 12:21:16 +0200
commit215bff17ed89733c23174494cbff63ab941368ca (patch)
treee3755f2d11d7ffe341bd3841aa832db25d02e369 /hw/usb/hcd-xhci.c
parent59a70ccd3be29d2c5034cf7f22de0cf4e9156432 (diff)
downloadfocaccia-qemu-215bff17ed89733c23174494cbff63ab941368ca.tar.gz
focaccia-qemu-215bff17ed89733c23174494cbff63ab941368ca.zip
usb-xhci: fix bit test
use & instead of the wrong &&

Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/usb/hcd-xhci.c')
-rw-r--r--hw/usb/hcd-xhci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/usb/hcd-xhci.c b/hw/usb/hcd-xhci.c
index fd13bbab27..5cf1a64699 100644
--- a/hw/usb/hcd-xhci.c
+++ b/hw/usb/hcd-xhci.c
@@ -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;
     }