Merge "Add explicit Result::ok() checks where needed" am: bc053268cf am: 0b0c5424a8
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1229625 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I66dafc280da0421afccadcd6c1c24e74dc306bf2
This commit is contained in:
commit
d2a4c1f841
1 changed files with 1 additions and 1 deletions
|
|
@ -857,7 +857,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