XHCI: Tweak formatting of FinishTransfers logic.
No functional change intended.
This commit is contained in:
@@ -2802,16 +2802,14 @@ XHCI::FinishTransfers()
|
|||||||
TRACE("transfer not successful, actualLength=%" B_PRIuSIZE "\n",
|
TRACE("transfer not successful, actualLength=%" B_PRIuSIZE "\n",
|
||||||
actualLength);
|
actualLength);
|
||||||
}
|
}
|
||||||
if (callbackStatus == B_OK) {
|
if (callbackStatus == B_OK && directionIn && actualLength > 0) {
|
||||||
if (directionIn && actualLength > 0) {
|
TRACE("copying in iov count %ld\n", transfer->VectorCount());
|
||||||
TRACE("copying in iov count %ld\n", transfer->VectorCount());
|
status_t status = transfer->PrepareKernelAccess();
|
||||||
status_t status = transfer->PrepareKernelAccess();
|
if (status == B_OK) {
|
||||||
if (status == B_OK) {
|
ReadDescriptor(td, transfer->Vector(),
|
||||||
ReadDescriptor(td, transfer->Vector(),
|
transfer->VectorCount());
|
||||||
transfer->VectorCount());
|
} else {
|
||||||
} else {
|
callbackStatus = status;
|
||||||
callbackStatus = status;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
transfer->Finished(callbackStatus, actualLength);
|
transfer->Finished(callbackStatus, actualLength);
|
||||||
|
|||||||
Reference in New Issue
Block a user