From: Johannes Berg In a vlan iteration loop the vlan pointer cannot be NULL. Remove the unnecessary check. Signed-off-by: Johannes Berg --- net/mac80211/link.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/net/mac80211/link.c b/net/mac80211/link.c index d71eabe5abf8..49eb1bd00e27 100644 --- a/net/mac80211/link.c +++ b/net/mac80211/link.c @@ -23,9 +23,6 @@ static void ieee80211_update_apvlan_links(struct ieee80211_sub_if_data *sdata) list_for_each_entry(vlan, &sdata->u.ap.vlans, u.vlan.list) { int link_id; - if (!vlan) - continue; - /* No support for 4addr with MLO yet */ if (vlan->wdev.use_4addr) return; -- 2.51.1