diff options
| author | Lai Jiangshan | 2012-04-02 08:35:30 +0200 |
|---|---|---|
| committer | Gerd Hoffmann | 2012-04-26 12:21:16 +0200 |
| commit | 215bff17ed89733c23174494cbff63ab941368ca (patch) | |
| tree | e3755f2d11d7ffe341bd3841aa832db25d02e369 /hw | |
| parent | usb-xhci: Use PCI DMA helper functions (diff) | |
| download | qemu-215bff17ed89733c23174494cbff63ab941368ca.tar.gz qemu-215bff17ed89733c23174494cbff63ab941368ca.tar.xz 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')
| -rw-r--r-- | hw/usb/hcd-xhci.c | 2 |
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; } |
