[core] fixed bad mathch on PCI_ANY_ID

This commit is contained in:
Geoffrey McRae 2020-11-15 13:23:26 +11:00
parent 684d4cf1f5
commit ac2bb1cd6b
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ struct vendor_reset_cfg * vendor_reset_cfg_find(unsigned int vendor,
if (cfg->vendor != vendor)
continue;
if (device == PCI_ANY_ID || device == cfg->device)
if (cfg->device == PCI_ANY_ID || cfg->device == device)
break;
}