staging: vt6655: Use fallthrough pseudo-keyword
authorGustavo A. R. Silva <gustavoars@kernel.org>
Tue, 7 Jul 2020 19:43:50 +0000 (14:43 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Jul 2020 11:52:46 +0000 (13:52 +0200)
Replace the existing /* fall through */ comments and its variants with
the new pseudo-keyword macro fallthrough[1]. Also, remove unnecessary
fall-through markings when it is the case.

[1] https://www.kernel.org/doc/html/latest/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through

Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Link: https://lore.kernel.org/r/20200707194350.GA3255@embeddedor
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6655/channel.c
drivers/staging/vt6655/key.c
drivers/staging/vt6656/channel.c
drivers/staging/vt6656/key.c

index 62a85c1..889fc22 100644 (file)
@@ -133,7 +133,7 @@ void vnt_init_bands(struct vnt_private *priv)
 
                priv->hw->wiphy->bands[NL80211_BAND_5GHZ] =
                                                &vnt_supported_5ghz_band;
-       /* fallthrough */
+               fallthrough;
        case RF_RFMD2959:
        case RF_AIROHA:
        case RF_AL2230S:
index 4d6b48f..94665dd 100644 (file)
@@ -51,15 +51,15 @@ static int vnt_set_keymode(struct ieee80211_hw *hw, u8 *mac_addr,
                /* default key last entry */
                entry = MAX_KEY_TABLE - 1;
                key->hw_key_idx = entry;
-               /* fall through */
+               fallthrough;
        case VNT_KEY_ALLGROUP:
                key_mode |= VNT_KEY_ALLGROUP;
                if (onfly_latch)
                        key_mode |= VNT_KEY_ONFLY_ALL;
-               /* fall through */
+               fallthrough;
        case VNT_KEY_GROUP_ADDRESS:
                key_mode |= mode;
-               /* fall through */
+               fallthrough;
        case VNT_KEY_GROUP:
                key_mode |= (mode << 4);
                key_mode |= VNT_KEY_GROUP;
index 5d57d34..7855689 100644 (file)
@@ -145,7 +145,7 @@ void vnt_init_bands(struct vnt_private *priv)
 
                priv->hw->wiphy->bands[NL80211_BAND_5GHZ] =
                                                &vnt_supported_5ghz_band;
-       /* fallthrough */
+               fallthrough;
        case RF_AL2230:
        case RF_AL2230S:
        case RF_VT3226:
index c66cb53..70f75c5 100644 (file)
@@ -67,7 +67,7 @@ static int vnt_set_keymode(struct ieee80211_hw *hw, u8 *mac_addr,
                /* default key last entry */
                entry = MAX_KEY_TABLE - 1;
                key->hw_key_idx = entry;
-               /* fall through */
+               fallthrough;
        case VNT_KEY_GROUP_ADDRESS:
                key_mode = mode | (mode << 4);
                break;