]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[xhci] Avoid false positive Coverity warning
authorMichael Brown <mcb30@ipxe.org>
Mon, 4 Jan 2021 09:37:59 +0000 (09:37 +0000)
committerMichael Brown <mcb30@ipxe.org>
Mon, 4 Jan 2021 09:37:59 +0000 (09:37 +0000)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/usb/xhci.c

index 550097a8179946a3379578a0931e6061a31d1049..cc48af033eab457c3bd486a66731270841dca39b 100644 (file)
@@ -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;