diff options
author | John W. Linville <linville@tuxdriver.com> | 2011-04-29 21:09:39 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-04-29 21:25:46 +0200 |
commit | ce6cac88a4f1e52a51a31c31562f4da347543147 (patch) | |
tree | 45f2ea8db8d1ef2072db0195cf528c4d015f9661 /drivers/net/wireless/p54/eeprom.c | |
parent | mwifiex: fix copy-n-paste 'thinko' for tsf_val (diff) | |
download | linux-ce6cac88a4f1e52a51a31c31562f4da347543147.tar.xz linux-ce6cac88a4f1e52a51a31c31562f4da347543147.zip |
p54: avoid uninitialized variable warning for freq
CC [M] drivers/net/wireless/p54/eeprom.o
drivers/net/wireless/p54/eeprom.c: In function ‘p54_parse_rssical’:
drivers/net/wireless/p54/eeprom.c:494:8: warning: ‘freq’ may be used uninitialized in this function
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/p54/eeprom.c')
-rw-r--r-- | drivers/net/wireless/p54/eeprom.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/p54/eeprom.c b/drivers/net/wireless/p54/eeprom.c index 13d750da9301..54cc0bba66b9 100644 --- a/drivers/net/wireless/p54/eeprom.c +++ b/drivers/net/wireless/p54/eeprom.c @@ -491,7 +491,7 @@ static int p54_parse_rssical(struct ieee80211_hw *dev, struct pda_rssi_cal_entry *cal = (void *) &data[offset]; for (i = 0; i < entries; i++) { - u16 freq; + u16 freq = 0; switch (i) { case IEEE80211_BAND_2GHZ: freq = 2437; |