From 0ff2568e38215400cb60342718958d312cc68207 Mon Sep 17 00:00:00 2001 From: Wenhao Wang Date: Wed, 21 Aug 2019 09:32:56 -0700 Subject: [PATCH] Check correct err variable on wifi keystore HAL Test: rebuild source code and flash it to phone (Pixel 3a), which works. Change-Id: I152470dd9f6f5a8a7793eefd0cfb2f8d8d483205 --- keystore/keystore_main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keystore/keystore_main.cpp b/keystore/keystore_main.cpp index 45c3feb3..9e358c94 100644 --- a/keystore/keystore_main.cpp +++ b/keystore/keystore_main.cpp @@ -167,7 +167,7 @@ int main(int argc, char* argv[]) { configureRpcThreadpool(1, false /* callerWillJoin */); android::sp wifiKeystoreHalService = new Keystore(); android::status_t err = wifiKeystoreHalService->registerAsService(); - CHECK(ret == android::OK) << "Cannot register wifi keystore HAL service: " << err; + CHECK(err == android::OK) << "Cannot register wifi keystore HAL service: " << err; /* * This thread is just going to process Binder transactions.