From: John W. Linville Date: Mon, 12 Jan 2009 19:44:52 +0000 (-0500) Subject: iwl3945: fix "‘power_idx’ may be used uninitialized" warning X-Git-Tag: MMI-PSA29.97-13-9~29781^2~48^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=25a4cceaa44a7f73c8f92e6177812347500a0b15;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git iwl3945: fix "‘power_idx’ may be used uninitialized" warning drivers/net/wireless/iwlwifi/iwl-3945.c: In function ‘iwl3945_txpower_set_from_eeprom’: drivers/net/wireless/iwlwifi/iwl-3945.c:2222: warning: ‘power_idx’ may be used uninitialized in this function Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/iwlwifi/iwl-3945.c b/drivers/net/wireless/iwlwifi/iwl-3945.c index 8fdb34222c0a..45cfa1cf194a 100644 --- a/drivers/net/wireless/iwlwifi/iwl-3945.c +++ b/drivers/net/wireless/iwlwifi/iwl-3945.c @@ -2219,7 +2219,7 @@ int iwl3945_txpower_set_from_eeprom(struct iwl3945_priv *priv) /* set tx power value for all OFDM rates */ for (rate_index = 0; rate_index < IWL_OFDM_RATES; rate_index++) { - s32 power_idx; + s32 uninitialized_var(power_idx); int rc; /* use channel group's clip-power table,