summaryrefslogtreecommitdiff
path: root/init/firmware_handler.cpp
diff options
context:
space:
mode:
authorBernie Innocenti <codewiz@google.com>2020-02-06 03:49:33 +0900
committerBernie Innocenti <codewiz@google.com>2020-02-06 17:04:27 +0000
commitcecebbbaccd36dc2e9f6e80c8e91e57d979963a5 (patch)
treee866ec8f6bd1eafcc47a7f26d5b957ad787dcfdc /init/firmware_handler.cpp
parenta6bc86aae72e406c1e90ff25eb3f95b654d9a723 (diff)
Convert system/core to Result::ok()
No functionality changes, this is a mechanical cleanup. Test: m Test: cd system/core && atest Change-Id: Ifdaa3ce1947ed578f656d5a446978726eb416c36
Diffstat (limited to 'init/firmware_handler.cpp')
-rw-r--r--init/firmware_handler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/init/firmware_handler.cpp b/init/firmware_handler.cpp
index 1dce2d507..dff7b6948 100644
--- a/init/firmware_handler.cpp
+++ b/init/firmware_handler.cpp
@@ -165,7 +165,7 @@ std::string FirmwareHandler::GetFirmwarePath(const Uevent& uevent) const {
auto result =
RunExternalHandler(external_handler.handler_path, external_handler.uid, uevent);
- if (!result) {
+ if (!result.ok()) {
LOG(ERROR) << "Using default firmware; External firmware handler failed: "
<< result.error();
return uevent.firmware;