]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
wifi: mac80211: remove unnecessary vlan NULL check
authorJohannes Berg <johannes.berg@intel.com>
Wed, 5 Nov 2025 15:10:33 +0000 (16:10 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 10 Nov 2025 09:39:08 +0000 (10:39 +0100)
In a vlan iteration loop the vlan pointer cannot be NULL.
Remove the unnecessary check.

Link: https://patch.msgid.link/20251105161033.670b5a06296c.I24cb1a5338736ab0a8a24d6a492c259f894d09fb@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/link.c

index 85ed3cbb2e360e3095b3a35d813213052aed7ed7..1e05845872afc86f3188336c178f5b7c3b3fec52 100644 (file)
@@ -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;