ehci: fix assertion typo
authorAlejandro Martinez Ruiz <alex@securiforest.com>
Tue, 14 Aug 2012 14:13:02 +0000 (16:13 +0200)
committerStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Wed, 15 Aug 2012 14:18:53 +0000 (15:18 +0100)
Signed-off-by: Alejandro Martinez Ruiz <alex@securiforest.com>
Reviewed-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
hw/usb/hcd-ehci.c

index b043e7c..104c21d 100644 (file)
@@ -2010,7 +2010,7 @@ static void ehci_fill_queue(EHCIPacket *p)
         p->qtdaddr = qtdaddr;
         p->qtd = qtd;
         p->usb_status = ehci_execute(p, "queue");
-        assert(p->usb_status = USB_RET_ASYNC);
+        assert(p->usb_status == USB_RET_ASYNC);
         p->async = EHCI_ASYNC_INFLIGHT;
     }
 }