Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <rientjes@cs.washington.edu>
Acked-by: Brice Goglin <brice@myri.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by

David Rientjes and committed by
Greg Kroah-Hartman
0c875c28 42a0ee32

+1 -2
+1 -2
drivers/pci/quirks.c
··· 1688 1688 * a single one having MSI is enough to be sure that MSI are supported. 1689 1689 */ 1690 1690 pdev = pci_get_slot(dev->bus, 0); 1691 - if (dev->subordinate && !msi_ht_cap_enabled(dev) 1692 - && !msi_ht_cap_enabled(pdev)) { 1691 + if (!msi_ht_cap_enabled(dev) && !msi_ht_cap_enabled(pdev)) { 1693 1692 printk(KERN_WARNING "PCI: MSI quirk detected. " 1694 1693 "MSI disabled on chipset %s.\n", 1695 1694 pci_name(dev));