Commit ce6cac88 authored by John W. Linville's avatar John W. Linville
Browse files

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: default avatarJohn W. Linville <linville@tuxdriver.com>
parent f9c2fdba
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment