diff options
author | Kalle Valo <kvalo@qca.qualcomm.com> | 2012-01-31 14:26:22 -0500 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2012-02-02 03:13:06 -0500 |
commit | 1b46dc04866a4962644ef32d7398e34b40f7ac21 (patch) | |
tree | a15a6f4b82ba0df61a1c2230a6683e8c7fec6cdd | |
parent | 3c325fbd0cdb4f83b7761cd8ba7519d7a236de38 (diff) |
ath6kl: fix compiler warning in ath6kl_init_hw_params()
Both Luis and John reported that they see a compiler warning:
drivers/net/wireless/ath/ath6kl/init.c: In function 'ath6kl_init_hw_params':
drivers/net/wireless/ath/ath6kl/init.c:1377:26: warning: ‘hw’
may be used uninitialized in this function
Oddly enough I have never seen it. But AFAICT the code is correct and
hw is not used uninitalized so add uninitialized_var() to inform that to
the compiler.
Reported-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com>
Reported-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
-rw-r--r-- | drivers/net/wireless/ath/ath6kl/init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/init.c b/drivers/net/wireless/ath/ath6kl/init.c index bf56e5f17618..0d76c3778106 100644 --- a/drivers/net/wireless/ath/ath6kl/init.c +++ b/drivers/net/wireless/ath/ath6kl/init.c | |||
@@ -1470,7 +1470,7 @@ static int ath6kl_init_upload(struct ath6kl *ar) | |||
1470 | 1470 | ||
1471 | int ath6kl_init_hw_params(struct ath6kl *ar) | 1471 | int ath6kl_init_hw_params(struct ath6kl *ar) |
1472 | { | 1472 | { |
1473 | const struct ath6kl_hw *hw; | 1473 | const struct ath6kl_hw *uninitialized_var(hw); |
1474 | int i; | 1474 | int i; |
1475 | 1475 | ||
1476 | for (i = 0; i < ARRAY_SIZE(hw_list); i++) { | 1476 | for (i = 0; i < ARRAY_SIZE(hw_list); i++) { |