diff options
author | John W. Linville <linville@tuxdriver.com> | 2011-04-29 15:09:39 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-04-29 15:25:46 -0400 |
commit | ce6cac88a4f1e52a51a31c31562f4da347543147 (patch) | |
tree | 45f2ea8db8d1ef2072db0195cf528c4d015f9661 /drivers/net/wireless/p54/eeprom.c | |
parent | f9c2fdbab1f1854f2bfcc75c326d0f4537ec2a7e (diff) |
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, | |||
491 | struct pda_rssi_cal_entry *cal = (void *) &data[offset]; | 491 | struct pda_rssi_cal_entry *cal = (void *) &data[offset]; |
492 | 492 | ||
493 | for (i = 0; i < entries; i++) { | 493 | for (i = 0; i < entries; i++) { |
494 | u16 freq; | 494 | u16 freq = 0; |
495 | switch (i) { | 495 | switch (i) { |
496 | case IEEE80211_BAND_2GHZ: | 496 | case IEEE80211_BAND_2GHZ: |
497 | freq = 2437; | 497 | freq = 2437; |