Fix typo which inversed the logic which in turn disabled MSI.

Pointy hat to:  yongari
This commit is contained in:
Pyun YongHyeon 2009-11-25 17:51:14 +00:00
parent 7e6acdf12b
commit 6a15578d8a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=199808

View File

@ -2677,7 +2677,7 @@ bge_attach(device_t dev)
* normal operation.
*/
rid = 0;
if (pci_find_extcap(sc->bge_dev, PCIY_MSI, &reg) != 0) {
if (pci_find_extcap(sc->bge_dev, PCIY_MSI, &reg) == 0) {
sc->bge_msicap = reg;
if (bge_can_use_msi(sc)) {
msicount = pci_msi_count(dev);