diff options
author | Michael Brown <mcb30@ipxe.org> | 2021-01-04 09:37:59 +0000 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2021-01-04 09:37:59 +0000 |
commit | c42f31bc8ad8ffce57b8662f902a343b1a4d3209 (patch) | |
tree | d9a610e12da35b2373afff31e78cedfcb7e4e066 | |
parent | 5aa389593dded9a45a2d2b83f3c1c65b2770fb82 (diff) | |
download | ipxe-c42f31bc8ad8ffce57b8662f902a343b1a4d3209.zip ipxe-c42f31bc8ad8ffce57b8662f902a343b1a4d3209.tar.gz ipxe-c42f31bc8ad8ffce57b8662f902a343b1a4d3209.tar.bz2 |
[xhci] Avoid false positive Coverity warning
Signed-off-by: Michael Brown <mcb30@ipxe.org>
-rw-r--r-- | src/drivers/usb/xhci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/usb/xhci.c b/src/drivers/usb/xhci.c index 550097a..cc48af0 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; |