mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-06 02:25:23 +00:00
The device to host and host to device branches of HostDevice's handle_control_transfer function are basically identical, differing only in whether to do a read or write and when to do it. Split this code out into its own function, execute_control_transfer, to reduce code duplication and prepare for future changes. BUG=chromium:831850 TEST=Test adb in crostini Change-Id: Ic659f18ca97e2c1c71f67f3543096fe69228969a Signed-off-by: Daniel Verkamp <dverkamp@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1593712 Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com> Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Zach Reizner <zachr@chromium.org> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |