ACPI: pci_link: simplify list of link devices
authorBjorn Helgaas <bjorn.helgaas@hp.com>
Tue, 17 Feb 2009 21:00:55 +0000 (14:00 -0700)
committerLen Brown <len.brown@intel.com>
Tue, 17 Mar 2009 05:53:29 +0000 (01:53 -0400)
commit5f0dccaa81e239477413d0def1133850530f1bbe
treee1b07674a092d1ba39beada0c333e2be386f07b4
parent6eca4b4ca168981d7648be371945c2a21f463a45
ACPI: pci_link: simplify list of link devices

We don't need a struct containing a count and a list_head; a simple
list_head is sufficient.  The list iterators handle empty lists
fine.

Furthermore, we don't need to check for null list entries because we
only add non-null entries.

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