acpi_pad: squish warning
authorAndrew Morton <akpm@linux-foundation.org>
Sat, 14 Nov 2009 03:55:30 +0000 (19:55 -0800)
committerLen Brown <len.brown@intel.com>
Wed, 16 Dec 2009 08:21:22 +0000 (03:21 -0500)
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>
drivers/acpi/acpi_pad.c

index 0d2cdb86158bec0c024436b7feba922a88a71844..97991ac6f5fcb4664881fa5b873cab061ab7fdc7 100644 (file)
@@ -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;