Index: uspace/drv/bus/usb/xhci/commands.c
===================================================================
--- uspace/drv/bus/usb/xhci/commands.c	(revision 3d8a3bd8e7d58487ec7bfeb137b908371b06f5f9)
+++ uspace/drv/bus/usb/xhci/commands.c	(revision 6da60396f6cb542da0ddcd9e433be4c43a2b8865)
@@ -170,18 +170,10 @@
 }
 
-static inline int add_cmd(xhci_hc_t *hc, xhci_cmd_t *cmd)
-{
-	if (cmd == NULL) {
-		cmd = xhci_alloc_command();
-		if (cmd == NULL)
-			return ENOMEM;
-
-		cmd->has_owner = false;
-	}
+static inline void add_cmd(xhci_hc_t *hc, xhci_cmd_t *cmd)
+{
+	assert(cmd);
 
 	list_append(&cmd->link, &hc->commands);
 	cmd->trb = hc->command_ring.enqueue_trb;
-
-	return EOK;
 }
 
Index: uspace/drv/bus/usb/xhci/trb_ring.c
===================================================================
--- uspace/drv/bus/usb/xhci/trb_ring.c	(revision 3d8a3bd8e7d58487ec7bfeb137b908371b06f5f9)
+++ uspace/drv/bus/usb/xhci/trb_ring.c	(revision 6da60396f6cb542da0ddcd9e433be4c43a2b8865)
@@ -310,6 +310,5 @@
 		ring->dequeue_trb = segment_begin(ring->dequeue_segment);
 	}
-	
-
-	return EOK;
-}
+
+	return EOK;
+}
