projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5931065
)
ehci: add assert
author
Gerd Hoffmann
<kraxel@redhat.com>
Wed, 9 Nov 2011 11:20:20 +0000
(12:20 +0100)
committer
Gerd 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
patch
|
blob
|
history
diff --git
a/hw/usb-ehci.c
b/hw/usb-ehci.c
index cdd5aae1e946229a7417461a890db3f923d2fedc..3eea94d09e65bf74ea41e51e9c3be136aba08c2d 100644
(file)
--- 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;