Commit c7611618 authored by Jiapeng Chong's avatar Jiapeng Chong Committed by Johannes Berg
Browse files

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: default avatarAbaci Robot <abaci@linux.alibaba.com>
Signed-off-by: default avatarJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Link: https://lore.kernel.org/r/20220113161557.129427-1-jiapeng.chong@linux.alibaba.com


Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 45d33746
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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;
	}