Преглед изворни кода

qcacmn: Fix warning in crypto

Fix warning for uninitialized variable

Change-Id: I7ac7b96d7097ec74264926bdf321f9d406681271
CRs-Fixed: 2363632
Ashok Kumar пре 6 година
родитељ
комит
509aeeb4b5
1 измењених фајлова са 1 додато и 1 уклоњено
  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 */