]> git.proxmox.com Git - mirror_ubuntu-disco-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)
commitc9ad8e062e4c733b36fc10ebc201bedde1a4da80
tree3133de2d6ac31ddb0fc212d56cb48ed2141289dc
parent25cb1bfdd8256cd1c614947e1696e42176ac22ec
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