Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit be63497c authored by Ethan Zhao's avatar Ethan Zhao Committed by Bjorn Helgaas
Browse files

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: default avatarEthan Zhao <ethan.zhao@oracle.com>
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
parent be507fd0
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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);