Browse Source

qcacmn: hal: 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: Id97d026b2d90a607974cc541d0301565af423f2f
CRs-Fixed: 3218239
David Oladunjoye 3 năm trước cách đây
mục cha
commit
61b329ec5c
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      hal/wifi3.0/be/hal_be_api_mon.h

+ 3 - 3
hal/wifi3.0/be/hal_be_api_mon.h

@@ -1208,7 +1208,7 @@ hal_rx_parse_ru_allocation(struct hal_soc *hal_soc, void *tlv,
 		ppdu_info->rx_status.eht_data[2] |=
 				(ofdma_cmn_eb2->ru_allocation2_3 <<
 				 QDF_MON_STATUS_EHT_RU_ALLOCATION2_3_SHIFT);
-		/* fallthrough */
+		fallthrough;
 	case HAL_EHT_BW_160:
 		num_ru_allocation_known += 2;
 
@@ -1218,14 +1218,14 @@ hal_rx_parse_ru_allocation(struct hal_soc *hal_soc, void *tlv,
 		ppdu_info->rx_status.eht_data[2] |=
 				(ofdma_cmn_eb2->ru_allocation2_1 <<
 				 QDF_MON_STATUS_EHT_RU_ALLOCATION2_1_SHIFT);
-		/* fallthrough */
+		fallthrough;
 	case HAL_EHT_BW_80:
 		num_ru_allocation_known += 1;
 
 		ppdu_info->rx_status.eht_data[1] |=
 				(ofdma_cmn_eb1->ru_allocation1_2 <<
 				 QDF_MON_STATUS_EHT_RU_ALLOCATION1_2_SHIFT);
-		/* fallthrough */
+		fallthrough;
 	case HAL_EHT_BW_40:
 	case HAL_EHT_BW_20:
 		num_ru_allocation_known += 1;