aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/vt6655/device_main.c
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavoars@kernel.org>2020-11-20 12:27:44 -0600
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-11-23 17:55:23 +0100
commit6a8ce97113b3b26dcf3ecc6752ee556f145cb49e (patch)
treec7f6cbd37475a051a8f9d3eecfeee468f2388728 /drivers/staging/vt6655/device_main.c
parentstaging: rtl8723bs: core: Fix fall-through warnings for Clang (diff)
downloadlinux-dev-6a8ce97113b3b26dcf3ecc6752ee556f145cb49e.tar.xz
linux-dev-6a8ce97113b3b26dcf3ecc6752ee556f145cb49e.zip
staging: vt6655: Fix fall-through warnings for Clang
In preparation to enable -Wimplicit-fallthrough for Clang, fix multiple warnings by explicitly adding multiple break statements instead of just letting the code fall through to the next case. Link: https://github.com/KSPP/linux/issues/115 Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org> Link: https://lore.kernel.org/r/863fda60074850bc976974af48fa769c64725e64.1605896059.git.gustavoars@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/vt6655/device_main.c')
-rw-r--r--drivers/staging/vt6655/device_main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/vt6655/device_main.c b/drivers/staging/vt6655/device_main.c
index 9c7d70ebb405..979165445d88 100644
--- a/drivers/staging/vt6655/device_main.c
+++ b/drivers/staging/vt6655/device_main.c
@@ -1582,6 +1582,7 @@ static int vnt_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd,
case DISABLE_KEY:
if (test_bit(key->hw_key_idx, &priv->key_entry_inuse))
clear_bit(key->hw_key_idx, &priv->key_entry_inuse);
+ break;
default:
break;
}