credstore: remove unused variable

Test: mmm system/security
Change-Id: I50f80bd823c9039eaa05cc724077f297af550462
This commit is contained in:
Eric Biggers 2023-07-06 17:43:59 +00:00
parent 6055d11ab9
commit 7eb4bf7c37

View file

@ -527,7 +527,6 @@ AuthKeyData* CredentialData::findAuthKey_(bool allowUsingExhaustedKeys,
return nullptr;
}
int n = 0;
for (AuthKeyData& data : authKeyDatas_) {
if (nowMilliSeconds > data.expirationDateMillisSinceEpoch) {
if (!allowUsingExpiredKeys) {
@ -540,7 +539,6 @@ AuthKeyData* CredentialData::findAuthKey_(bool allowUsingExhaustedKeys,
candidate = &data;
}
}
n++;
}
if (candidate == nullptr) {