From: Michael Brown Date: Mon, 4 Jan 2021 09:37:59 +0000 (+0000) Subject: [xhci] Avoid false positive Coverity warning X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c42f31bc8ad8ffce57b8662f902a343b1a4d3209;p=thirdparty%2Fipxe.git [xhci] Avoid false positive Coverity warning Signed-off-by: Michael Brown --- diff --git a/src/drivers/usb/xhci.c b/src/drivers/usb/xhci.c index 550097a81..cc48af033 100644 --- a/src/drivers/usb/xhci.c +++ b/src/drivers/usb/xhci.c @@ -1814,7 +1814,7 @@ static int xhci_command ( struct xhci_device *xhci, union xhci_trb *trb ) { int rc; /* Sanity check */ - if ( xhci->pending != NULL ) { + if ( xhci->pending ) { DBGC ( xhci, "XHCI %s command ring busy\n", xhci->name ); rc = -EBUSY; goto err_pending;