Browse Source

qcacmn: use bool instead of uint8_t

Replace uint8_t type with bool where only
variable is used for set true or false.

Change-Id: I04592bfc4d0d4b19c67cedafd3b8cb625544cd18
Ashok Kumar 6 years ago
parent
commit
1b91304c4c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      umac/cmn_services/crypto/src/wlan_crypto_global_api.c

+ 2 - 2
umac/cmn_services/crypto/src/wlan_crypto_global_api.c

@@ -317,13 +317,13 @@ QDF_STATUS wlan_crypto_set_pmksa(struct wlan_crypto_params *crypto_params,
 				 struct wlan_crypto_pmksa *pmksa)
 {
 	uint8_t i, first_available_slot = 0;
-	uint8_t slot_found = 0;
+	bool slot_found = false;
 
 	/* find the empty slot or slot with same bssid */
 	for (i = 0; i < WLAN_CRYPTO_MAX_PMKID; i++) {
 		if (!crypto_params->pmksa[i]) {
 			if (!slot_found) {
-				slot_found = 1;
+				slot_found = true;
 				first_available_slot = i;
 			}
 			continue;