diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2009-11-14 04:55:30 +0100 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2009-12-16 09:21:22 +0100 |
commit | f67538f81e6b8da9175c82807d649fbdb0055844 (patch) | |
tree | c252ef616375f722a6bb31d9485cd6c9b4680c77 /drivers/acpi | |
parent | acerhdf: add new BIOS versions (diff) | |
download | linux-f67538f81e6b8da9175c82807d649fbdb0055844.tar.xz linux-f67538f81e6b8da9175c82807d649fbdb0055844.zip |
acpi_pad: squish warning
drivers/acpi/acpi_pad.c: In function 'power_saving_thread':
drivers/acpi/acpi_pad.c:103: warning: 'preferred_cpu' may be used uninitialized in this function
Cc: Shaohua Li <shaohua.li@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi')
-rw-r--r-- | drivers/acpi/acpi_pad.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/acpi/acpi_pad.c b/drivers/acpi/acpi_pad.c index 0d2cdb86158b..97991ac6f5fc 100644 --- a/drivers/acpi/acpi_pad.c +++ b/drivers/acpi/acpi_pad.c @@ -100,7 +100,8 @@ static void round_robin_cpu(unsigned int tsk_index) struct cpumask *pad_busy_cpus = to_cpumask(pad_busy_cpus_bits); cpumask_var_t tmp; int cpu; - unsigned long min_weight = -1, preferred_cpu; + unsigned long min_weight = -1; + unsigned long uninitialized_var(preferred_cpu); if (!alloc_cpumask_var(&tmp, GFP_KERNEL)) return; |