diff options
author | Miaohe Lin <linmiaohe@huawei.com> | 2020-08-22 04:23:23 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2020-08-27 11:24:28 +0200 |
commit | 7b506ff6f6903518af65fc35ae2fcd8305d8ff2b (patch) | |
tree | b90a03029fed8c5ff12f6c1f7537fc8624b668cb /net/wireless/util.c | |
parent | net: wireless: wext_compat.c: delete duplicated word (diff) | |
download | linux-dev-7b506ff6f6903518af65fc35ae2fcd8305d8ff2b.tar.xz linux-dev-7b506ff6f6903518af65fc35ae2fcd8305d8ff2b.zip |
net: wireless: Convert to use the preferred fallthrough macro
Convert the uses of fallthrough comments to fallthrough macro.
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Link: https://lore.kernel.org/r/20200822082323.45495-1-linmiaohe@huawei.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to '')
-rw-r--r-- | net/wireless/util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/wireless/util.c b/net/wireless/util.c index dfad1c0f57ad..7c5d5365a5eb 100644 --- a/net/wireless/util.c +++ b/net/wireless/util.c @@ -198,7 +198,7 @@ static void set_mandatory_flags_band(struct ieee80211_supported_band *sband) sband->bitrates[i].flags |= IEEE80211_RATE_MANDATORY_G; want--; - /* fall through */ + fallthrough; default: sband->bitrates[i].flags |= IEEE80211_RATE_ERP_G; @@ -1008,7 +1008,7 @@ int cfg80211_change_iface(struct cfg80211_registered_device *rdev, case NL80211_IFTYPE_STATION: if (dev->ieee80211_ptr->use_4addr) break; - /* fall through */ + fallthrough; case NL80211_IFTYPE_OCB: case NL80211_IFTYPE_P2P_CLIENT: case NL80211_IFTYPE_ADHOC: |