diff options
author | Alessio Igor Bogani <abogani@kernel.org> | 2011-02-28 03:11:55 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-02-28 14:06:54 -0500 |
commit | c2a7dca0ce0e6ceb13f9030ff8e9731eaa14cc02 (patch) | |
tree | 465ed71045dc4eaeb3c913d361644e7f50fce7be /drivers/net/wireless/rtlwifi | |
parent | 701c2be03aac62a54decaa685c70d2b734afde67 (diff) |
rtlwifi: fix places where uninitialized data is used
drivers/net/wireless/rtlwifi/rtl8192ce/trx.c: In function ‘rtl92ce_rx_query_desc’:
drivers/net/wireless/rtlwifi/rtl8192ce/trx.c:255:5: warning: ‘rf_rx_num’ may be used uninitialized in this function
drivers/net/wireless/rtlwifi/rtl8192ce/trx.c:257:12: warning: ‘total_rssi’ may be used uninitialized in this function
drivers/net/wireless/rtlwifi/rtl8192ce/trx.c:466:6: warning: ‘weighting’ may be used uninitialized in this function
This work was supported by a hardware donation from the CE Linux Forum.
Signed-off-by: Alessio Igor Bogani <abogani@kernel.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rtlwifi')
-rw-r--r-- | drivers/net/wireless/rtlwifi/rtl8192ce/trx.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/rtlwifi/rtl8192ce/trx.c b/drivers/net/wireless/rtlwifi/rtl8192ce/trx.c index e14f74367396..aa2b5815600f 100644 --- a/drivers/net/wireless/rtlwifi/rtl8192ce/trx.c +++ b/drivers/net/wireless/rtlwifi/rtl8192ce/trx.c | |||
@@ -252,9 +252,9 @@ static void _rtl92ce_query_rxphystatus(struct ieee80211_hw *hw, | |||
252 | struct rtl_priv *rtlpriv = rtl_priv(hw); | 252 | struct rtl_priv *rtlpriv = rtl_priv(hw); |
253 | struct phy_sts_cck_8192s_t *cck_buf; | 253 | struct phy_sts_cck_8192s_t *cck_buf; |
254 | s8 rx_pwr_all, rx_pwr[4]; | 254 | s8 rx_pwr_all, rx_pwr[4]; |
255 | u8 rf_rx_num, evm, pwdb_all; | 255 | u8 evm, pwdb_all, rf_rx_num = 0; |
256 | u8 i, max_spatial_stream; | 256 | u8 i, max_spatial_stream; |
257 | u32 rssi, total_rssi; | 257 | u32 rssi, total_rssi = 0; |
258 | bool is_cck_rate; | 258 | bool is_cck_rate; |
259 | 259 | ||
260 | is_cck_rate = RX_HAL_IS_CCK_RATE(pdesc); | 260 | is_cck_rate = RX_HAL_IS_CCK_RATE(pdesc); |
@@ -463,7 +463,7 @@ static void _rtl92ce_update_rxsignalstatistics(struct ieee80211_hw *hw, | |||
463 | struct rtl_stats *pstats) | 463 | struct rtl_stats *pstats) |
464 | { | 464 | { |
465 | struct rtl_priv *rtlpriv = rtl_priv(hw); | 465 | struct rtl_priv *rtlpriv = rtl_priv(hw); |
466 | int weighting; | 466 | int weighting = 0; |
467 | 467 | ||
468 | if (rtlpriv->stats.recv_signal_power == 0) | 468 | if (rtlpriv->stats.recv_signal_power == 0) |
469 | rtlpriv->stats.recv_signal_power = pstats->recvsignalpower; | 469 | rtlpriv->stats.recv_signal_power = pstats->recvsignalpower; |