int10: Remove useless check.
If you have more than one PCI device with the same d/b/d/f, you're already in trouble.
This commit is contained in:
		
							parent
							
								
									6dbfca571f
								
							
						
					
					
						commit
						a65e36a873
					
				| 
						 | 
					@ -488,13 +488,6 @@ pci_device_for_cfg_address (CARD32 addr)
 | 
				
			||||||
		return NULL;
 | 
							return NULL;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (pci_device_next(iter)) {
 | 
					 | 
				
			||||||
		char buf[128]; /* enough to store "%u@%u" */
 | 
					 | 
				
			||||||
		xf86FormatPciBusNumber(tag >> 16, buf);
 | 
					 | 
				
			||||||
		ErrorF("Multiple devices matching %s:%u:%u\n",
 | 
					 | 
				
			||||||
				buf, slot_match.dev, slot_match.func);
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	return dev;
 | 
						return dev;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue