From: Jiapeng Chong Date: Thu, 13 Jan 2022 16:15:57 +0000 (+0800) Subject: mac80211: Remove redundent assignment channel_type X-Git-Tag: microblaze-v5.19~142^2~372^2~14 X-Git-Url: http://git.monstr.eu/?a=commitdiff_plain;h=c761161851d31a6dc5274699cdf4e01de558cba9;p=linux-2.6-microblaze.git mac80211: Remove redundent assignment channel_type Fix the following coccicheck warnings: net/mac80211/util.c:3265:3: warning: Value stored to 'channel_type' is never read [clang-analyzer-deadcode.DeadStores]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong Link: https://lore.kernel.org/r/20220113161557.129427-1-jiapeng.chong@linux.alibaba.com Signed-off-by: Johannes Berg --- diff --git a/net/mac80211/util.c b/net/mac80211/util.c index 342c2bfe2709..abc29df6834c 100644 --- a/net/mac80211/util.c +++ b/net/mac80211/util.c @@ -3279,7 +3279,6 @@ bool ieee80211_chandef_ht_oper(const struct ieee80211_ht_operation *ht_oper, channel_type = NL80211_CHAN_HT40MINUS; break; default: - channel_type = NL80211_CHAN_NO_HT; return false; }