From 062ef5356dec66cb789c1faf71890301ef345730 Mon Sep 17 00:00:00 2001 From: Bernie Innocenti Date: Fri, 7 Feb 2020 23:20:54 +0900 Subject: [PATCH] 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 --- init/reboot.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init/reboot.cpp b/init/reboot.cpp index 49baf9e68..4699eca3b 100644 --- a/init/reboot.cpp +++ b/init/reboot.cpp @@ -853,7 +853,7 @@ static Result 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"; }