Skip to contentSkip to conversation

mac80211: Remove redundent assignment channel_type

PATCH New Jiapeng Chong 1 participant 1 message Jan 13, 2022

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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].

---
 net/mac80211/util.c | 1 -
 1 file changed, 1 deletion(-)
net/mac80211/util.c +0 -1
index f71b042a5c8b..fea3d34e3ef3 100644
@@ -3262,7 +3262,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;
 	}
 
Signature · 1 line
2.20.1.7.g153144c