From: Gerd Hoffmann Date: Wed, 9 Nov 2011 11:20:20 +0000 (+0100) Subject: ehci: add assert X-Git-Tag: TizenStudio_2.0_p2.3~1939^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=339638267d9d4e782370fa09bae25e37a3016358;p=sdk%2Femulator%2Fqemu.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 --- 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;