From 8c8d26aadaed8cd5d2aebf0ab59ffa3ae89cb949 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sat, 4 Oct 2014 21:38:44 +0300 Subject: [PATCH] Remove unnecessary PMKSA cache freeing step _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 --- src/ap/pmksa_cache_auth.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/ap/pmksa_cache_auth.c b/src/ap/pmksa_cache_auth.c index a7a292eaa..3bb3eeebf 100644 --- a/src/ap/pmksa_cache_auth.c +++ b/src/ap/pmksa_cache_auth.c @@ -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