Commit 2811861b authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by Greg Kroah-Hartman

staging: rtl8723bs: core: 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/115Signed-off-by: default avatarGustavo A. R. Silva <gustavoars@kernel.org>
Link: https://lore.kernel.org/r/cd07e3ebc11b44a3fe016341438e24cf950994a3.1605896059.git.gustavoars@kernel.orgSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 03c1136a
...@@ -1480,6 +1480,7 @@ void lps_ctrl_wk_hdl(struct adapter *padapter, u8 lps_ctrl_type) ...@@ -1480,6 +1480,7 @@ void lps_ctrl_wk_hdl(struct adapter *padapter, u8 lps_ctrl_type)
break; break;
case LPS_CTRL_TRAFFIC_BUSY: case LPS_CTRL_TRAFFIC_BUSY:
LPS_Leave(padapter, "LPS_CTRL_TRAFFIC_BUSY"); LPS_Leave(padapter, "LPS_CTRL_TRAFFIC_BUSY");
break;
default: default:
break; break;
} }
......
...@@ -1707,6 +1707,7 @@ unsigned int OnAssocRsp(struct adapter *padapter, union recv_frame *precv_frame) ...@@ -1707,6 +1707,7 @@ unsigned int OnAssocRsp(struct adapter *padapter, union recv_frame *precv_frame)
case _ERPINFO_IE_: case _ERPINFO_IE_:
ERP_IE_handler(padapter, pIE); ERP_IE_handler(padapter, pIE);
break;
default: default:
break; break;
......
...@@ -1514,6 +1514,7 @@ unsigned int is_ap_in_tkip(struct adapter *padapter) ...@@ -1514,6 +1514,7 @@ unsigned int is_ap_in_tkip(struct adapter *padapter)
case _RSN_IE_2_: case _RSN_IE_2_:
if (!memcmp((pIE->data + 8), RSN_TKIP_CIPHER, 4)) if (!memcmp((pIE->data + 8), RSN_TKIP_CIPHER, 4))
return true; return true;
break;
default: default:
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment