* [PATCH] wifi: iwlwifi: fix uninitialized variable warning
@ 2025-04-01 12:10 sunliming
0 siblings, 0 replies; only message in thread
From: sunliming @ 2025-04-01 12:10 UTC (permalink / raw)
To: miriam.rachel.korenblit, johannes.berg, emmanuel.grumbach,
benjamin.berg, pagadala.yesu.anjaneyulu, linux-wireless,
linux-kernel
Cc: sunliming, kernel test robot
From: sunliming <sunliming@kylinos.cn>
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 <lkp@intel.com>
Signed-off-by: sunliming <sunliming@kylinos.cn>
---
drivers/net/wireless/intel/iwlwifi/mld/mac80211.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/wireless/intel/iwlwifi/mld/mac80211.c b/drivers/net/wireless/intel/iwlwifi/mld/mac80211.c
index 6851064b82da..7146116b067c 100644
--- a/drivers/net/wireless/intel/iwlwifi/mld/mac80211.c
+++ b/drivers/net/wireless/intel/iwlwifi/mld/mac80211.c
@@ -475,7 +475,7 @@ static
int 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);
--
2.25.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2025-04-01 12:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-01 12:10 [PATCH] wifi: iwlwifi: fix uninitialized variable warning sunliming
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.