From 339638267d9d4e782370fa09bae25e37a3016358 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Wed, 9 Nov 2011 12:20:20 +0100 Subject: [PATCH] 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; -- 2.7.4