Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Gustavo A. R. Silva and committed by
Greg Kroah-Hartman
6a8ce971 2811861b

+3
+1
drivers/staging/vt6655/device_main.c
··· 1582 1582 case DISABLE_KEY: 1583 1583 if (test_bit(key->hw_key_idx, &priv->key_entry_inuse)) 1584 1584 clear_bit(key->hw_key_idx, &priv->key_entry_inuse); 1585 + break; 1585 1586 default: 1586 1587 break; 1587 1588 }
+2
drivers/staging/vt6655/rxtx.c
··· 1007 1007 switch (info->control.hw_key->cipher) { 1008 1008 case WLAN_CIPHER_SUITE_CCMP: 1009 1009 cbMICHDR = sizeof(struct vnt_mic_hdr); 1010 + break; 1010 1011 default: 1011 1012 break; 1012 1013 } ··· 1322 1321 break; 1323 1322 case WLAN_CIPHER_SUITE_CCMP: 1324 1323 tx_buffer_head->frag_ctl |= cpu_to_le16(FRAGCTL_AES); 1324 + break; 1325 1325 default: 1326 1326 break; 1327 1327 }