diff mbox series

[2/8] wifi: mac80211: remove unnecessary chanreq compat check

Message ID 20240206164849.388898af2e66.I5b0c802f5164e94bff661900177956d6954f9a2d@changeid
State New
Headers show
Series cfg80211/mac80211 patches from our internal tree 2024-02-06 | expand

Commit Message

Miri Korenblit Feb. 6, 2024, 2:54 p.m. UTC
From: Daniel Amosi <amosi.daniel@intel.com>

This conditions can never be true, because if it was true
(either before or inside the loop) the code is already checking
this.

Signed-off-by: Daniel Amosi <amosi.daniel@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
---
 net/mac80211/chan.c | 3 ---
 1 file changed, 3 deletions(-)
diff mbox series

Patch

diff --git a/net/mac80211/chan.c b/net/mac80211/chan.c
index ef4c2cebc080..f7ddfa329258 100644
--- a/net/mac80211/chan.c
+++ b/net/mac80211/chan.c
@@ -829,9 +829,6 @@  void ieee80211_recalc_chanctx_chantype(struct ieee80211_local *local,
 	}
 	rcu_read_unlock();
 
-	if (!compat)
-		return;
-
 	ieee80211_change_chanctx(local, ctx, ctx, compat);
 }