Add explicit Result::ok() checks where needed
Test: m checkbuild continuous_instrumentation_tests continuous_instrumentation_tests_api_coverage continuous_native_tests device-tests platform_tests Exempt-From-Owner-Approval: mechanical mass refactoring Change-Id: I8d40b1e3cb5d2f76baf77b8a190df4366909f7b6
This commit is contained in:
parent
cf110de8d2
commit
062ef5356d
1 changed files with 1 additions and 1 deletions
|
|
@ -853,7 +853,7 @@ static Result<void> DoUserspaceReboot() {
|
|||
sub_reason = "apex";
|
||||
return result;
|
||||
}
|
||||
if (!SwitchToMountNamespaceIfNeeded(NS_BOOTSTRAP)) {
|
||||
if (!SwitchToMountNamespaceIfNeeded(NS_BOOTSTRAP).ok()) {
|
||||
sub_reason = "ns_switch";
|
||||
return Error() << "Failed to switch to bootstrap namespace";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue