From 215bff17ed89733c23174494cbff63ab941368ca Mon Sep 17 00:00:00 2001 From: Lai Jiangshan Date: Mon, 2 Apr 2012 14:35:30 +0800 Subject: [PATCH] usb-xhci: fix bit test use & instead of the wrong && Signed-off-by: Lai Jiangshan Signed-off-by: Gerd Hoffmann --- hw/usb/hcd-xhci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }