ehci: add assert
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 9 Nov 2011 11:20:20 +0000 (12:20 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 21 Nov 2011 14:32:42 +0000 (15:32 +0100)
Coverity thinks q could be NULL there and warns.
I believe it can't be NULL there.
Add assert to prove it.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb-ehci.c

index cdd5aae..3eea94d 100644 (file)
@@ -2046,6 +2046,7 @@ static void ehci_advance_state(EHCIState *ehci,
             break;
 
         case EST_WRITEBACK:
+            assert(q != NULL);
             again = ehci_state_writeback(q, async);
             break;