From 50dfcb02c8afe8b71963ed1103abb115517dcb1f Mon Sep 17 00:00:00 2001 From: Bernie Innocenti Date: Fri, 28 Feb 2020 20:39:40 +0900 Subject: [PATCH] Fix missing Result::ok() call in init Test: m init Change-Id: Ifc11f856704e6f8d08764b6ba2876423992fb8c2 --- init/init.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init/init.cpp b/init/init.cpp index bfef9e5bc..a530d180a 100644 --- a/init/init.cpp +++ b/init/init.cpp @@ -120,7 +120,7 @@ static void InstallInitNotifier(Epoll* epoll) { } }; - if (auto result = epoll->RegisterHandler(epoll_fd, drain_socket); !result) { + if (auto result = epoll->RegisterHandler(epoll_fd, drain_socket); !result.ok()) { LOG(FATAL) << result.error(); } }