summaryrefslogtreecommitdiffstats
path: root/net/wireless
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavo@embeddedor.com>2019-01-23 02:03:32 -0500
committerJohannes Berg <johannes.berg@intel.com>2019-01-25 08:05:31 -0500
commit4af217500e7fc7cf87528488db5bc6494f4890a9 (patch)
tree1663419c79ae482b36327bb4040e10273b51e4aa /net/wireless
parent390298e86f8a2e8b428ffb259a323667229ff822 (diff)
cfg80211: mark expected switch fall-throughs
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. This patch fixes the following warnings: net/wireless/wext-compat.c:1327:6: warning: this statement may fall through [-Wimplicit-fallthrough=] net/wireless/wext-compat.c:1341:6: warning: this statement may fall through [-Wimplicit-fallthrough=] Warning level 3 was used: -Wimplicit-fallthrough=3 This patch is part of the ongoing efforts to enabling -Wimplicit-fallthrough Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless')
-rw-r--r--net/wireless/wext-compat.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/wireless/wext-compat.c b/net/wireless/wext-compat.c
index 06943d9c9835..d522787c7354 100644
--- a/net/wireless/wext-compat.c
+++ b/net/wireless/wext-compat.c
@@ -1337,6 +1337,7 @@ static struct iw_statistics *cfg80211_wireless_stats(struct net_device *dev)
1337 wstats.qual.qual = sig + 110; 1337 wstats.qual.qual = sig + 110;
1338 break; 1338 break;
1339 } 1339 }
1340 /* fall through */
1340 case CFG80211_SIGNAL_TYPE_UNSPEC: 1341 case CFG80211_SIGNAL_TYPE_UNSPEC:
1341 if (sinfo.filled & BIT_ULL(NL80211_STA_INFO_SIGNAL)) { 1342 if (sinfo.filled & BIT_ULL(NL80211_STA_INFO_SIGNAL)) {
1342 wstats.qual.updated |= IW_QUAL_LEVEL_UPDATED; 1343 wstats.qual.updated |= IW_QUAL_LEVEL_UPDATED;
@@ -1345,6 +1346,7 @@ static struct iw_statistics *cfg80211_wireless_stats(struct net_device *dev)
1345 wstats.qual.qual = sinfo.signal; 1346 wstats.qual.qual = sinfo.signal;
1346 break; 1347 break;
1347 } 1348 }
1349 /* fall through */
1348 default: 1350 default:
1349 wstats.qual.updated |= IW_QUAL_LEVEL_INVALID; 1351 wstats.qual.updated |= IW_QUAL_LEVEL_INVALID;
1350 wstats.qual.updated |= IW_QUAL_QUAL_INVALID; 1352 wstats.qual.updated |= IW_QUAL_QUAL_INVALID;