mirror of
https://github.com/torvalds/linux.git
synced 2026-05-29 09:33:31 +02:00
staging: rtl8188eu: 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 Reviewed-by: Kees Cook <keescook@chromium.org> Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org> Link: https://lore.kernel.org/r/20210528200650.GA39289@embeddedor Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
827dffb1ca
commit
0ee817dd58
|
|
@ -3378,6 +3378,7 @@ static unsigned int OnAssocRsp(struct adapter *padapter,
|
|||
break;
|
||||
case WLAN_EID_ERP_INFO:
|
||||
ERP_IE_handler(padapter, pIE);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1029,6 +1029,7 @@ unsigned int is_ap_in_tkip(struct adapter *padapter)
|
|||
case WLAN_EID_RSN:
|
||||
if (!memcmp((pIE->data + 8), RSN_TKIP_CIPHER, 4))
|
||||
return true;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
@ -1226,6 +1227,7 @@ unsigned char check_assoc_AP(u8 *pframe, uint len)
|
|||
} else {
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user