ACPI: pci_root: simplify acpi_pci_root_add() control flow
authorBjorn Helgaas <bjorn.helgaas@hp.com>
Thu, 18 Jun 2009 20:46:52 +0000 (14:46 -0600)
committerLen Brown <len.brown@intel.com>
Sat, 20 Jun 2009 04:01:52 +0000 (00:01 -0400)
commitf5eebbe119a861b5e4f5c67c886eab0937c686ed
tree9aa3e915a50d5d8155a21c76c447afa9911ed072
parentfbe2b31b4b6dfa790cbc88e00631f3112c4fc54e
ACPI: pci_root: simplify acpi_pci_root_add() control flow

By looking up the segment & bus number earlier, we don't have to
worry about cleaning up if it fails.

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/pci_root.c