summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/drivers/usb/xhci.c2
1 files changed, 1 insertions, 1 deletions
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;