svn commit: r199808 - head/sys/dev/bge
Pyun YongHyeon
yongari at FreeBSD.org
Wed Nov 25 17:51:15 UTC 2009
Author: yongari
Date: Wed Nov 25 17:51:14 2009
New Revision: 199808
URL: http://svn.freebsd.org/changeset/base/199808
Log:
Fix typo which inversed the logic which in turn disabled MSI.
Pointy hat to: yongari
Modified:
head/sys/dev/bge/if_bge.c
Modified: head/sys/dev/bge/if_bge.c
==============================================================================
--- head/sys/dev/bge/if_bge.c Wed Nov 25 17:30:38 2009 (r199807)
+++ head/sys/dev/bge/if_bge.c Wed Nov 25 17:51:14 2009 (r199808)
@@ -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);
More information about the svn-src-head
mailing list