mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-22 14:49:24 +01:00
eapol: reorder eapol_sm_free
Technically there's no problem here as l_queue_remove does not dereference the pointer. Still, it confuses certain static analysis tools in the current form. Reordering this will not change the behavior at all.
This commit is contained in:
parent
0ade612b3e
commit
91c449d74a
@ -886,9 +886,9 @@ struct eapol_sm *eapol_sm_new(struct handshake_state *hs)
|
||||
|
||||
void eapol_sm_free(struct eapol_sm *sm)
|
||||
{
|
||||
eapol_sm_destroy(sm);
|
||||
|
||||
l_queue_remove(state_machines, sm);
|
||||
|
||||
eapol_sm_destroy(sm);
|
||||
}
|
||||
|
||||
void eapol_sm_set_listen_interval(struct eapol_sm *sm, uint16_t interval)
|
||||
|
Loading…
Reference in New Issue
Block a user