From b246721614e316ce948d058dbe45702447998b5f Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Wed, 9 Nov 2011 12:20:20 +0100 Subject: 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 --- hw/usb-ehci.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/usb-ehci.c b/hw/usb-ehci.c index cdd5aae..3eea94d 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; -- cgit v1.1