diff options
author | Ethan Zhao | 2014-09-09 10:21:28 +0800 |
---|---|---|
committer | Bjorn Helgaas | 2014-09-16 16:19:58 -0600 |
commit | be63497c413e22d5abdf32313f4b469af6aa7f4c (patch) | |
tree | ba8ba44e6d9cbbee3b6755e5c150309897f034ad /drivers/pci/iov.c | |
parent | be507fd09011d2af3b34940fe616a2dd569fd3f7 (diff) |
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: Ethan Zhao <ethan.zhao@oracle.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/iov.c')
-rw-r--r-- | drivers/pci/iov.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/iov.c b/drivers/pci/iov.c index cb6f24740ee3..4d109c07294a 100644 --- a/drivers/pci/iov.c +++ b/drivers/pci/iov.c @@ -633,7 +633,7 @@ int pci_vfs_assigned(struct pci_dev *dev) * our dev as the physical function and the assigned bit is set */ if (vfdev->is_virtfn && (vfdev->physfn == dev) && - (vfdev->dev_flags & PCI_DEV_FLAGS_ASSIGNED)) + pci_is_dev_assigned(vfdev)) vfs_assigned++; vfdev = pci_get_device(dev->vendor, dev_id, vfdev); |