mirror of https://github.com/ipxe/ipxe.git
[xhci] Avoid false positive Coverity warning
Signed-off-by: Michael Brown <mcb30@ipxe.org>pull/204/head
parent
5aa389593d
commit
c42f31bc8a
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue