diff options
| author | Johannes Berg <johannes.berg@intel.com> | 2025-11-05 18:10:33 +0300 |
|---|---|---|
| committer | Johannes Berg <johannes.berg@intel.com> | 2025-11-10 12:39:08 +0300 |
| commit | 243d30fbb679f3442d2e697bd344dee975982583 (patch) | |
| tree | 48cecc0f123ebfabb3b89f0f0388335be33129cb | |
| parent | 68eb1b791ac8da7c3d03967143f1417e2978bf5e (diff) | |
| download | linux-243d30fbb679f3442d2e697bd344dee975982583.tar.xz | |
wifi: mac80211: remove unnecessary vlan NULL check
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>
| -rw-r--r-- | net/mac80211/link.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/net/mac80211/link.c b/net/mac80211/link.c index 85ed3cbb2e36..1e05845872af 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; |
