linux/drivers/pci
Alex Chiang 867556fe74 PCI Hotplug: cpqphp: refactor cpqhp_probe
Apply DeMorgan's theorem:

	if ((pdev->revision > 2) || (vendor_id == PCI_VENDOR_ID_INTEL))

turns into

	if ((pdev->revision <= 2) && (vendor_id != PCI_VENDOR_ID_INTEL))

Now we can bail out early from the function if the controller is not
supported.

This allows us to un-indent the remainder of the function quite a bit and
make it much more readable.

Fix up some extra braces, and un-indent the 'case' labels in the switch
statement as per CodingStyle.

No functional change.

Signed-off-by: Alex Chiang <achiang@hp.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
2009-06-11 12:04:11 -07:00
..
hotplug PCI Hotplug: cpqphp: refactor cpqhp_probe 2009-06-11 12:04:11 -07:00
pcie PCIE: remove driver_data direct access of struct device 2009-06-11 12:04:04 -07:00
.gitignore
access.c
bus.c PCI/x86: don't assume prefetchable ranges are 64bit 2009-06-11 12:04:06 -07:00
dmar.c
hotplug-pci.c
hotplug.c
htirq.c
intel-iommu.c
intr_remapping.c
intr_remapping.h
iov.c
iova.c
irq.c
Kconfig
Makefile
msi.c PCI MSI: Define PCI_MSI_MASK_32/64 2009-06-11 12:04:06 -07:00
msi.h PCI MSI: Define PCI_MSI_MASK_32/64 2009-06-11 12:04:06 -07:00
pci-acpi.c
pci-driver.c
pci-stub.c
pci-sysfs.c
pci.c
pci.h
probe.c PCI/x86: don't assume prefetchable ranges are 64bit 2009-06-11 12:04:06 -07:00
proc.c
quirks.c
remove.c
rom.c
search.c
setup-bus.c PCI: improve resource allocation under transparent bridges 2009-06-11 12:04:07 -07:00
setup-irq.c
setup-res.c PCI: improve resource allocation under transparent bridges 2009-06-11 12:04:07 -07:00
slot.c
syscall.c