staging: vt6655: mark expected switch fall-throughs in vnt_set_keymode
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Tue, 10 Oct 2017 19:40:31 +0000 (14:40 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Oct 2017 14:42:28 +0000 (16:42 +0200)
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6655/key.c

index d7ede73a1a0166b2232575dc6bfdd2bcf6c6be6d..d891993b20cfb4e4f59685a666d1a7543ce7ab90 100644 (file)
@@ -56,17 +56,19 @@ static int vnt_set_keymode(struct ieee80211_hw *hw, u8 *mac_addr,
        }
 
        switch (key_type) {
-       /* fallthrough */
        case VNT_KEY_DEFAULTKEY:
                /* default key last entry */
                entry = MAX_KEY_TABLE - 1;
                key->hw_key_idx = entry;
+               /* fall through */
        case VNT_KEY_ALLGROUP:
                key_mode |= VNT_KEY_ALLGROUP;
                if (onfly_latch)
                        key_mode |= VNT_KEY_ONFLY_ALL;
+               /* fall through */
        case VNT_KEY_GROUP_ADDRESS:
                key_mode |= mode;
+               /* fall through */
        case VNT_KEY_GROUP:
                key_mode |= (mode << 4);
                key_mode |= VNT_KEY_GROUP;