PCI: Use device flag helper functions
authorEthan Zhao <ethan.zhao@oracle.com>
Tue, 9 Sep 2014 02:21:28 +0000 (10:21 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 16 Sep 2014 22:19:58 +0000 (16:19 -0600)
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>
drivers/pci/iov.c

index cb6f24740ee3e5b3f6763f7b25c2bf8700e6a1b2..4d109c07294a8d7326583e43ffb594569cf1c1e7 100644 (file)
@@ -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);