Jelajahi Sumber

qcacld-3.0: Avoid uninitialized variable errors

Strict checking of uninitialized usage of variables.

Change-Id: I8645924a298b3dc34c07eda7b70d1d9935807239
CRs-Fixed: 3162631
Madhvapathi Sriram 3 tahun lalu
induk
melakukan
1b1d1d0470
2 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 1 1
      core/hdd/src/wlan_hdd_cfg80211.c
  2. 1 1
      core/hdd/src/wlan_hdd_main.c

+ 1 - 1
core/hdd/src/wlan_hdd_cfg80211.c

@@ -23608,7 +23608,7 @@ static int __wlan_hdd_cfg80211_set_bitrate_mask(struct wiphy *wiphy,
 	uint8_t rate_index;
 	struct hdd_context *hdd_ctx = wiphy_priv(wiphy);
 	uint8_t vdev_id;
-	uint8_t gi_val;
+	u8 gi_val = 0;
 #if (LINUX_VERSION_CODE > KERNEL_VERSION(5, 10, 0))
 	uint8_t auto_rate_he_gi = 0;
 #endif

+ 1 - 1
core/hdd/src/wlan_hdd_main.c

@@ -7303,7 +7303,7 @@ int hdd_set_fw_params(struct hdd_adapter *adapter)
 	uint8_t enable_tx_sch_delay, dfs_chan_ageout_time;
 	uint32_t dtim_sel_diversity, enable_secondary_rate;
 	bool sap_xlna_bypass;
-	bool enable_ofdm_scrambler_seed;
+	bool enable_ofdm_scrambler_seed = false;
 
 	hdd_enter_dev(adapter->dev);