qcacld-3.0: dp: Replace fallthrough comment with attribute

-Wimplicit-fallthrough is being enabled by default. Some compilers
such as clang require the attribute instead of just a fallthrough comment.

Change-Id: I6d12321a649b61b35f9abf4fb977d368fc8a6e4e
CRs-Fixed: 3217402
This commit is contained in:
David Oladunjoye
2022-06-09 11:57:00 -07:00
committed by Madan Koyyalamudi
父節點 7e9e394af6
當前提交 ca2a11a0c4
共有 2 個文件被更改,包括 5 次插入5 次删除

查看文件

@@ -313,16 +313,16 @@ void dp_trace_init(struct wlan_objmgr_psoc *psoc)
switch (num_entries) {
case 4:
proto_bitmap = config_params[3];
/* fallthrough */
fallthrough;
case 3:
verbosity = config_params[2];
/* fallthrough */
fallthrough;
case 2:
thresh = config_params[1];
/* fallthrough */
fallthrough;
case 1:
live_mode = config_params[0];
/* fallthrough */
fallthrough;
default:
dp_debug("live_mode %u thresh %u time_limit %u verbosity %u bitmap 0x%x",
live_mode, thresh, thresh_time_limit,

查看文件

@@ -330,7 +330,7 @@ int dp_softap_inspect_dhcp_packet(struct wlan_dp_intf *dp_intf,
sta_info->sta_mac.bytes,
true);
sta_info->dhcp_nego_status = DHCP_NEGO_IN_PROGRESS;
/* fallthrough */
fallthrough;
case QDF_PROTO_DHCP_DECLINE:
if (dir == QDF_RX)
sta_info->dhcp_phase = DHCP_PHASE_REQUEST;