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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
42a0ee3238
commit
0c875c2864
@@ -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.
|
* a single one having MSI is enough to be sure that MSI are supported.
|
||||||
*/
|
*/
|
||||||
pdev = pci_get_slot(dev->bus, 0);
|
pdev = pci_get_slot(dev->bus, 0);
|
||||||
if (dev->subordinate && !msi_ht_cap_enabled(dev)
|
if (!msi_ht_cap_enabled(dev) && !msi_ht_cap_enabled(pdev)) {
|
||||||
&& !msi_ht_cap_enabled(pdev)) {
|
|
||||||
printk(KERN_WARNING "PCI: MSI quirk detected. "
|
printk(KERN_WARNING "PCI: MSI quirk detected. "
|
||||||
"MSI disabled on chipset %s.\n",
|
"MSI disabled on chipset %s.\n",
|
||||||
pci_name(dev));
|
pci_name(dev));
|
||||||
|
Reference in New Issue
Block a user