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, &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);
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to