提交 be63497c 编写于 作者: E Ethan Zhao 提交者: Bjorn Helgaas

PCI: Use device flag helper functions

Use PCI device flag helper functions when checking whether a device is
assigned.  No functional change.
Signed-off-by: NEthan Zhao <ethan.zhao@oracle.com>
Signed-off-by: NBjorn Helgaas <bhelgaas@google.com>
上级 be507fd0
...@@ -633,7 +633,7 @@ int pci_vfs_assigned(struct pci_dev *dev) ...@@ -633,7 +633,7 @@ int pci_vfs_assigned(struct pci_dev *dev)
* our dev as the physical function and the assigned bit is set * our dev as the physical function and the assigned bit is set
*/ */
if (vfdev->is_virtfn && (vfdev->physfn == dev) && if (vfdev->is_virtfn && (vfdev->physfn == dev) &&
(vfdev->dev_flags & PCI_DEV_FLAGS_ASSIGNED)) pci_is_dev_assigned(vfdev))
vfs_assigned++; vfs_assigned++;
vfdev = pci_get_device(dev->vendor, dev_id, vfdev); vfdev = pci_get_device(dev->vendor, dev_id, vfdev);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册