From: Johannes Berg <johannes.berg@xxxxxxxxx> Remove some braces that were left in a previous fix where they're no longer needed. Signed-off-by: Johannes Berg <johannes.berg@xxxxxxxxx> Signed-off-by: Luca Coelho <luciano.coelho@xxxxxxxxx> --- net/mac80211/mlme.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index ffe8cb35ab43..f076e73314a6 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c @@ -4849,9 +4849,8 @@ static int ieee80211_prep_channel(struct ieee80211_sub_if_data *sdata, break; } - if (!have_80mhz) { + if (!have_80mhz) ifmgd->flags |= IEEE80211_STA_DISABLE_VHT; - } ifmgd->flags |= ieee80211_determine_chantype(sdata, sband, cbss->channel, @@ -5463,9 +5462,8 @@ int ieee80211_mgd_assoc(struct ieee80211_sub_if_data *sdata, ifmgd->flags |= IEEE80211_STA_DISABLE_HE; } - if (req->flags & ASSOC_REQ_DISABLE_VHT) { + if (req->flags & ASSOC_REQ_DISABLE_VHT) ifmgd->flags |= IEEE80211_STA_DISABLE_VHT; - } err = ieee80211_prep_connection(sdata, req->bss, true, override); if (err) -- 2.24.1