3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-21 20:12:37 +01:00

eapol: Use l_container_of

This commit is contained in:
Denis Kenzior 2019-04-03 11:46:04 -05:00
parent 10db2d60d6
commit b97d3f2a82

View File

@ -729,7 +729,7 @@ struct eapol_frame_watch {
static void eapol_frame_watch_free(struct watchlist_item *item)
{
struct eapol_frame_watch *efw =
container_of(item, struct eapol_frame_watch, super);
l_container_of(item, struct eapol_frame_watch, super);
l_free(efw);
}
@ -2475,7 +2475,7 @@ void eapol_preauth_cancel(uint32_t ifindex)
static bool eapol_frame_watch_match_ifindex(const void *a, const void *b)
{
struct eapol_frame_watch *efw =
container_of(a, struct eapol_frame_watch, super);
l_container_of(a, struct eapol_frame_watch, super);
return efw->ifindex == L_PTR_TO_UINT(b);
}