XHCI: Don't compute the error code twice.

No functional change.
This commit is contained in:
Augustin Cavalier
2019-02-22 13:32:27 -05:00
parent c409803d6f
commit 7b53b3c2e4
+2 -2
View File
@@ -2153,9 +2153,9 @@ XHCI::DoCommand(xhci_trb* trb)
uint32 completionCode = TRB_2_COMP_CODE_GET(fCmdResult[0]);
TRACE("Command Complete. Result: %" B_PRId32 "\n", completionCode);
if (completionCode != COMP_SUCCESS) {
uint32 errorCode = TRB_2_COMP_CODE_GET(fCmdResult[0]);
TRACE_ERROR("unsuccessful command %" B_PRId32 ", error %s (%" B_PRId32 ")\n",
TRB_3_TYPE_GET(trb->dwtrb3), xhci_error_string(errorCode), errorCode);
TRB_3_TYPE_GET(trb->dwtrb3), xhci_error_string(completionCode),
completionCode);
status = B_IO_ERROR;
}