Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci Fix the check of the device type in last commit.



details:   https://anonhg.NetBSD.org/src/rev/bc7a056343b4
branches:  trunk
changeset: 780845:bc7a056343b4
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Thu Aug 09 07:48:39 2012 +0000

description:
Fix the check of the device type in last commit.
Reported by Thomas Klausner.

diffstat:

 sys/dev/pci/if_wm.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r e84f29430a56 -r bc7a056343b4 sys/dev/pci/if_wm.c
--- a/sys/dev/pci/if_wm.c       Thu Aug 09 07:46:18 2012 +0000
+++ b/sys/dev/pci/if_wm.c       Thu Aug 09 07:48:39 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_wm.c,v 1.230 2012/08/09 04:16:37 msaitoh Exp $      */
+/*     $NetBSD: if_wm.c,v 1.231 2012/08/09 07:48:39 msaitoh Exp $      */
 
 /*
  * Copyright (c) 2001, 2002, 2003, 2004 Wasabi Systems, Inc.
@@ -76,7 +76,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.230 2012/08/09 04:16:37 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.231 2012/08/09 07:48:39 msaitoh Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -4635,7 +4635,7 @@
                 * We use this workaround only for 82540 because qemu's
                 * e1000 act as 82540.
                 */
-               if (sc->sc_type >= WM_T_82540) {
+               if (sc->sc_type == WM_T_82540) {
                        reg |= EECD_SK;
                        CSR_WRITE(sc, WMREG_EECD, reg);
                        reg &= ~EECD_SK;



Home | Main Index | Thread Index | Old Index