diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2009-11-13 19:55:30 -0800 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2009-12-16 03:21:22 -0500 |
commit | f67538f81e6b8da9175c82807d649fbdb0055844 (patch) | |
tree | c252ef616375f722a6bb31d9485cd6c9b4680c77 /drivers/acpi/acpi_pad.c | |
parent | 360657463679dee44f0b167ffa61f563b4fee101 (diff) | |
download | op-kernel-dev-f67538f81e6b8da9175c82807d649fbdb0055844.zip op-kernel-dev-f67538f81e6b8da9175c82807d649fbdb0055844.tar.gz |
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/acpi_pad.c')
-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 0d2cdb8..97991ac 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; |