]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI: acpi_pad: simplify code to avoid false gcc build warning
authorLen Brown <len.brown@intel.com>
Tue, 28 Sep 2010 20:50:50 +0000 (16:50 -0400)
committerLen Brown <len.brown@intel.com>
Wed, 29 Sep 2010 18:08:10 +0000 (14:08 -0400)
commit17c565d78d707d4f33c50684cb1202c917f9bb6e
tree3133de2d6ac31ddb0fc212d56cb48ed2141289dc
parentd036a3535fd54f4c64bd589738cf9ef8bccdc291
ACPI: acpi_pad: simplify code to avoid false gcc build warning

acpi_pad.c:432: warning: ‘num_cpus’ may be used uninitialized in this function

gcc 4.4.4 was unable to notice that num_cpus is always set.
Re-arrange the code to un-confuse gcc, and also make
it easier for humans to read....

Signed-off-by: Len Brown <len.browns@intel.com>
drivers/acpi/acpi_pad.c