From: Jouni Malinen Date: Sat, 4 Oct 2014 18:38:44 +0000 (+0300) Subject: Remove unnecessary PMKSA cache freeing step X-Git-Tag: hostap_2_3~26 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8c8d26aadaed8cd5d2aebf0ab59ffa3ae89cb949;p=thirdparty%2Fhostap.git 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 --- 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