@@ -769,14 +769,12 @@ static int __init check_dev_quirk(int num, int slot, int func)
device = read_pci_config_16(num, slot, func, PCI_DEVICE_ID);
for (i = 0; early_qrk[i].f != NULL; i++) {
- if (((early_qrk[i].vendor == PCI_ANY_ID) ||
- (early_qrk[i].vendor == vendor)) &&
- ((early_qrk[i].device == PCI_ANY_ID) ||
- (early_qrk[i].device == device)) &&
- (!((early_qrk[i].class ^ class) &
- early_qrk[i].class_mask)))
- early_qrk[i].f(num, slot, func);
-
+ if ((early_qrk[i].vendor == PCI_ANY_ID ||
+ early_qrk[i].vendor == vendor) &&
+ (early_qrk[i].device == PCI_ANY_ID ||
+ early_qrk[i].device == device) &&
+ !((early_qrk[i].class ^ class) & early_qrk[i].class_mask))
+ early_qrk[i].f(num, slot, func);
}
type = read_pci_config_byte(num, slot, func,