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:
parent
42a0ee3238
commit
0c875c2864
1 changed files with 1 additions and 2 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue