Ver código fonte

qcacld-3.0: wma: 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: I97307a052db1784def408483689bcec7f157002b
CRs-Fixed: 3217421
David Oladunjoye 2 anos atrás
pai
commit
12a4b82909
1 arquivos alterados com 3 adições e 3 exclusões
  1. 3 3
      core/wma/src/wma_eht.c

+ 3 - 3
core/wma/src/wma_eht.c

@@ -851,7 +851,7 @@ void wma_populate_peer_eht_cap(struct peer_assoc_params *peer,
 			     12, 4, rates->bw_320_rx_max_nss_for_mcs_12_and_13);
 		QDF_SET_BITS(peer->peer_eht_tx_mcs_set[EHTCAP_TXRX_MCS_NSS_IDX2],
 			     12, 4, rates->bw_320_tx_max_nss_for_mcs_12_and_13);
-		/* fall through */
+		fallthrough;
 	case CH_WIDTH_160MHZ:
 		peer->peer_eht_mcs_count++;
 		QDF_SET_BITS(peer->peer_eht_rx_mcs_set[EHTCAP_TXRX_MCS_NSS_IDX1],
@@ -870,7 +870,7 @@ void wma_populate_peer_eht_cap(struct peer_assoc_params *peer,
 			     12, 4, rates->bw_160_rx_max_nss_for_mcs_12_and_13);
 		QDF_SET_BITS(peer->peer_eht_tx_mcs_set[EHTCAP_TXRX_MCS_NSS_IDX1],
 			     12, 4, rates->bw_160_tx_max_nss_for_mcs_12_and_13);
-		/* fall through */
+		fallthrough;
 	case CH_WIDTH_80MHZ:
 	case CH_WIDTH_40MHZ:
 		peer->peer_eht_mcs_count++;
@@ -909,7 +909,7 @@ void wma_populate_peer_eht_cap(struct peer_assoc_params *peer,
 			     12, 4, rates->bw_20_rx_max_nss_for_mcs_12_and_13);
 		QDF_SET_BITS(peer->peer_eht_tx_mcs_set[EHTCAP_TXRX_MCS_NSS_IDX0],
 			     12, 4, rates->bw_20_tx_max_nss_for_mcs_12_and_13);
-		/* fall through */
+		break;
 	default:
 		break;
 	}