wifi: iwlwifi: fix uninitialized variable warning
PATCH 1/1 wifi: iwlwifi: fix uninitialized variable warning
From: sunliming <[email protected]>
Fix below kernel warning:drivers/net/wireless/intel/iwlwifi/mld/mac80211.c:513:16: warning: variable 'ret' is uninitialized when used here [-Wuninitialized]
Reported-by kernel test robot <[email protected]>
Signed-off-by sunliming <[email protected]>
--- drivers/net/wireless/intel/iwlwifi/mld/mac80211.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/intel/iwlwifi/mld/mac80211.c +1 -1
@@ -475,7 +475,7 @@ staticint iwl_mld_mac80211_start (struct ieee80211_hw *hw) {struct iwl_mld *mld =IWL_MAC80211_GET_MLD (hw); -int ret; +int ret =0 ;bool in_d3 = false;lockdep_assert_wiphy (mld->wiphy);
Signature · 1 line
2.25.1