Parcourir la source

qcacmn: Fix warning in crypto

Fix warning for uninitialized variable

Change-Id: I7ac7b96d7097ec74264926bdf321f9d406681271
CRs-Fixed: 2363632
Ashok Kumar il y a 6 ans
Parent
commit
509aeeb4b5
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      umac/cmn_services/crypto/src/wlan_crypto_global_api.c

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

@@ -316,7 +316,7 @@ static
 QDF_STATUS wlan_crypto_set_pmksa(struct wlan_crypto_params *crypto_params,
 				 struct wlan_crypto_pmksa *pmksa)
 {
-	uint8_t i, first_available_slot;
+	uint8_t i, first_available_slot = 0;
 	uint8_t slot_found = 0;
 
 	/* find the empty slot or slot with same bssid */