diff options
author | Vivek Natarajan <vnatarajan@atheros.com> | 2011-02-18 05:39:51 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-02-18 16:54:56 -0500 |
commit | 8354dd3ebc7f0b82f52990af3e5f4f4488020263 (patch) | |
tree | e1f7647def062128d0216cc7944c58524ce84ccb /drivers/net/wireless/ath | |
parent | 540005c7fc787c211967148f7229f43db1eead38 (diff) |
ath9k_htc: Fix a compilation warning.
Initialize caldata to avoid compilation warning.
CC [M] drivers/net/wireless/ath/ath9k/htc_drv_main.o
drivers/net/wireless/ath/ath9k/htc_drv_main.c: In function ‘ath9k_htc_config’:
drivers/net/wireless/ath/ath9k/htc_drv_main.c:172: warning: ‘caldata’ may be used uninitialized in this function
drivers/net/wireless/ath/ath9k/htc_drv_main.c:172: note: ‘caldata’ was declared here
Signed-off-by: Vivek Natarajan <vnatarajan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/htc_drv_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/htc_drv_main.c b/drivers/net/wireless/ath/ath9k/htc_drv_main.c index 953036a4ed53..50fde0e10595 100644 --- a/drivers/net/wireless/ath/ath9k/htc_drv_main.c +++ b/drivers/net/wireless/ath/ath9k/htc_drv_main.c | |||
@@ -169,7 +169,7 @@ static int ath9k_htc_set_channel(struct ath9k_htc_priv *priv, | |||
169 | struct ieee80211_conf *conf = &common->hw->conf; | 169 | struct ieee80211_conf *conf = &common->hw->conf; |
170 | bool fastcc; | 170 | bool fastcc; |
171 | struct ieee80211_channel *channel = hw->conf.channel; | 171 | struct ieee80211_channel *channel = hw->conf.channel; |
172 | struct ath9k_hw_cal_data *caldata; | 172 | struct ath9k_hw_cal_data *caldata = NULL; |
173 | enum htc_phymode mode; | 173 | enum htc_phymode mode; |
174 | __be16 htc_mode; | 174 | __be16 htc_mode; |
175 | u8 cmd_rsp; | 175 | u8 cmd_rsp; |