From: Daniel Amosi <amosi.daniel@xxxxxxxxx> 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@xxxxxxxxx> Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@xxxxxxxxx> --- net/mac80211/chan.c | 3 --- 1 file changed, 3 deletions(-) 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); } -- 2.34.1