Merge "Add explicit Result::ok() checks where needed" am: bc053268cf

Original change: https://android-review.googlesource.com/c/platform/system/core/+/1229625

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Id1786f12c81fc044a99548dbdbcc620c6bb20b3b
This commit is contained in:
Bernie Innocenti 2020-12-21 18:42:25 +00:00 committed by Automerger Merge Worker
commit 0b0c5424a8

View file

@ -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";
}