mirror of https://github.com/xemu-project/xemu.git
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>
This commit is contained in:
parent
5931065907
commit
b246721614
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue