3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-10-04 10:29:03 +02:00

unit: Drop un-needed null checks

both ap_sm and sta_sm are passed to eapol_register and
eapol_start.  No need to check for null here
This commit is contained in:
Denis Kenzior 2021-02-09 10:42:03 -06:00
parent f0d811b79c
commit 8232fbddbf

View File

@ -2319,11 +2319,8 @@ static void test_ap_sta_run(struct test_ap_sta_data *s)
s->to_sta_data, len, false); s->to_sta_data, len, false);
} }
if (s->ap_sm) eapol_sm_free(s->ap_sm);
eapol_sm_free(s->ap_sm); eapol_sm_free(s->sta_sm);
if (s->sta_sm)
eapol_sm_free(s->sta_sm);
eapol_exit(); eapol_exit();
eap_exit(); eap_exit();