提交 b2467216 编写于 作者: G Gerd Hoffmann

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: NGerd Hoffmann <kraxel@redhat.com>
上级 59310659
...@@ -2046,6 +2046,7 @@ static void ehci_advance_state(EHCIState *ehci, ...@@ -2046,6 +2046,7 @@ static void ehci_advance_state(EHCIState *ehci,
break; break;
case EST_WRITEBACK: case EST_WRITEBACK:
assert(q != NULL);
again = ehci_state_writeback(q, async); again = ehci_state_writeback(q, async);
break; break;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册