Skip to content

Commit

Permalink
PCI: Use device flag helper functions
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ethan Zhao authored and Bjorn Helgaas committed Sep 16, 2014
1 parent be507fd commit be63497
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pci/iov.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit be63497

Please sign in to comment.