diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2011-11-09 12:20:20 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2011-11-21 15:32:42 +0100 |
commit | b246721614e316ce948d058dbe45702447998b5f (patch) | |
tree | 52916facefd9acceff4321852dd36d3876af7f5b /hw/usb-ehci.c | |
parent | 59310659073d85745854f2f10c4292555c5a1c51 (diff) |
ehci: add assert
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>
Diffstat (limited to 'hw/usb-ehci.c')
-rw-r--r-- | hw/usb-ehci.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/usb-ehci.c b/hw/usb-ehci.c index cdd5aae1e9..3eea94d09e 100644 --- a/hw/usb-ehci.c +++ b/hw/usb-ehci.c @@ -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; |