diff options
author | yongari <yongari@FreeBSD.org> | 2009-11-25 17:51:14 +0000 |
---|---|---|
committer | yongari <yongari@FreeBSD.org> | 2009-11-25 17:51:14 +0000 |
commit | c847f4ac5e204a5153fd995dd7d76862e0546c74 (patch) | |
tree | 9a95730f336723f6607e5ba58d9e345b93bde8ee | |
parent | e338fc108219fb61a3621724089fc00f7623fca5 (diff) | |
download | FreeBSD-src-c847f4ac5e204a5153fd995dd7d76862e0546c74.zip FreeBSD-src-c847f4ac5e204a5153fd995dd7d76862e0546c74.tar.gz |
Fix typo which inversed the logic which in turn disabled MSI.
Pointy hat to: yongari
-rw-r--r-- | sys/dev/bge/if_bge.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/bge/if_bge.c b/sys/dev/bge/if_bge.c index 5492bff..8ca0c73 100644 --- a/sys/dev/bge/if_bge.c +++ b/sys/dev/bge/if_bge.c @@ -2677,7 +2677,7 @@ bge_attach(device_t dev) * normal operation. */ rid = 0; - if (pci_find_extcap(sc->bge_dev, PCIY_MSI, ®) != 0) { + if (pci_find_extcap(sc->bge_dev, PCIY_MSI, ®) == 0) { sc->bge_msicap = reg; if (bge_can_use_msi(sc)) { msicount = pci_msi_count(dev); |