Check correct err variable on wifi keystore HAL

Test: rebuild source code and flash it to phone (Pixel 3a), which works.
Change-Id: I152470dd9f6f5a8a7793eefd0cfb2f8d8d483205
This commit is contained in:
Wenhao Wang 2019-08-21 09:32:56 -07:00
parent 147f3df5c3
commit 0ff2568e38

View file

@ -167,7 +167,7 @@ int main(int argc, char* argv[]) {
configureRpcThreadpool(1, false /* callerWillJoin */);
android::sp<IKeystore> 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.