Merge "Check correct err variable on wifi keystore HAL" am: 81f35573c7 am: 523a912137 am: 7b54866cf2
am: 9cbd06d349

Change-Id: I22e8214021e8eb663272b6f9cdb124a46de4c077
diff --git a/keystore/keystore_main.cpp b/keystore/keystore_main.cpp
index f1b37c0..ef68d92 100644
--- a/keystore/keystore_main.cpp
+++ b/keystore/keystore_main.cpp
@@ -168,7 +168,7 @@
     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.