From: David Rientjes Date: Sun, 3 Dec 2006 19:55:34 +0000 (-0800) Subject: PCI quirks: remove redundant check X-Git-Tag: v2.6.20-rc2~82^2~19 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0c875c28649eac0adb8d2e2efac2186c3089e100;p=platform%2Fkernel%2Flinux-exynos.git PCI quirks: remove redundant check Removes redundant check for dev->subordinate; if it is NULL, the function returns before the patch-affected code region. Signed-off-by: David Rientjes Acked-by: Brice Goglin Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c index 9ca9b9b..7571863 100644 --- a/drivers/pci/quirks.c +++ b/drivers/pci/quirks.c @@ -1688,8 +1688,7 @@ static void __devinit quirk_nvidia_ck804_msi_ht_cap(struct pci_dev *dev) * a single one having MSI is enough to be sure that MSI are supported. */ pdev = pci_get_slot(dev->bus, 0); - if (dev->subordinate && !msi_ht_cap_enabled(dev) - && !msi_ht_cap_enabled(pdev)) { + if (!msi_ht_cap_enabled(dev) && !msi_ht_cap_enabled(pdev)) { printk(KERN_WARNING "PCI: MSI quirk detected. " "MSI disabled on chipset %s.\n", pci_name(dev));