crosvm/vm_control
Clarissa Garvey e1a2b40496 Nontrivial fixes to needless_return
This CL contains a few fixes to needless_return which need approval from
someone familiar with the code. In two cases, the return was removed
from a function that returns a value, so it is considered safe because
if code is added later into the function, it will be clear that this is
removing an implicit return from the function. In the last case
(iommu.rs), the function has several error! macros that do not trigger
an early return, so it seems that it is okay to remove the last early
return.

BUG=b:157245930, chromium:908640
TEST=cargo clippy (no logical code changes)

Change-Id: I00685c9033499a92713eb591eadb5f90c29e761d
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4014835
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Commit-Queue: Clarissa Garvey <clarissagarvey@chromium.org>
Reviewed-by: David Stevens <stevensd@chromium.org>
2022-11-09 18:29:24 +00:00
..
src Nontrivial fixes to needless_return 2022-11-09 18:29:24 +00:00
Cargo.toml crosvm: GPU and display arg parsing for Windows. 2022-10-18 05:17:53 +00:00