diff options
author | John W. Linville <linville@tuxdriver.com> | 2011-04-29 23:09:39 +0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-04-29 23:25:46 +0400 |
commit | ce6cac88a4f1e52a51a31c31562f4da347543147 (patch) | |
tree | 45f2ea8db8d1ef2072db0195cf528c4d015f9661 /drivers | |
parent | f9c2fdbab1f1854f2bfcc75c326d0f4537ec2a7e (diff) | |
download | linux-ce6cac88a4f1e52a51a31c31562f4da347543147.tar.xz |
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')
-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; |