Check key store result with isOk() instead of casted value
am: d166a88fb9

Change-Id: If2144150ef176c285536e100d32d65e693f184d1
diff --git a/keystore/key_store_service.cpp b/keystore/key_store_service.cpp
index 35530e1..aa177b6 100644
--- a/keystore/key_store_service.cpp
+++ b/keystore/key_store_service.cpp
@@ -1176,7 +1176,7 @@
 
     std::tie(rc, wrappingKeyBlob, wrappingCharBlob, wrappingLockedEntry) =
         mKeyStore->getKeyForName(wrappingKeyName8, callingUid, TYPE_KEYMASTER_10);
-    if (!rc) {
+    if (!rc.isOk()) {
         return AIDL_RETURN(rc);
     }