]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Remove unnecessary PMKSA cache freeing step
authorJouni Malinen <j@w1.fi>
Sat, 4 Oct 2014 18:38:44 +0000 (21:38 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 4 Oct 2014 20:01:08 +0000 (23:01 +0300)
_pmksa_cache_free_entry() is a static function that is never called with
entry == NULL, so there is no need to check for that.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/ap/pmksa_cache_auth.c

index a7a292eaada52be8819b27f678f37494d6b75aad..3bb3eeebf7d6b82c1604eb8ee9d65872a9e79e1f 100644 (file)
@@ -37,8 +37,6 @@ static void pmksa_cache_set_expiration(struct rsn_pmksa_cache *pmksa);
 
 static void _pmksa_cache_free_entry(struct rsn_pmksa_cache_entry *entry)
 {
-       if (entry == NULL)
-               return;
        os_free(entry->identity);
        wpabuf_free(entry->cui);
 #ifndef CONFIG_NO_RADIUS