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>
This commit is contained in:
		
					parent
					
						
							
								be507fd090
							
						
					
				
			
			
				commit
				
					
						be63497c41
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -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);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue