diff options
author | Jiapeng Chong | 2022-01-14 00:15:57 +0800 |
---|---|---|
committer | Johannes Berg | 2022-02-04 16:27:45 +0100 |
commit | c761161851d31a6dc5274699cdf4e01de558cba9 (patch) | |
tree | a8f381c0709bfea0404d9c46b0ff65a0ceaa4575 /net/mac80211 | |
parent | 45d33746d2f2dd45d9b471e4d1ccb27e337fd2e8 (diff) |
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 <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Link: https://lore.kernel.org/r/20220113161557.129427-1-jiapeng.chong@linux.alibaba.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211')
-rw-r--r-- | net/mac80211/util.c | 1 |
1 files changed, 0 insertions, 1 deletions
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; } |