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 a typo in the "failed to acquire eeprom" case.



details:   https://anonhg.NetBSD.org/src/rev/ad80f8098fc5
branches:  trunk
changeset: 553704:ad80f8098fc5
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Mon Oct 20 15:34:25 2003 +0000

description:
Fix a typo in the "failed to acquire eeprom" case.

diffstat:

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

diffs (27 lines):

diff -r 2b2b0e66f59d -r ad80f8098fc5 sys/dev/pci/if_wm.c
--- a/sys/dev/pci/if_wm.c       Mon Oct 20 15:33:48 2003 +0000
+++ b/sys/dev/pci/if_wm.c       Mon Oct 20 15:34:25 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_wm.c,v 1.48 2003/10/20 15:33:48 thorpej Exp $       */
+/*     $NetBSD: if_wm.c,v 1.49 2003/10/20 15:34:25 thorpej Exp $       */
 
 /*
  * Copyright (c) 2001, 2002, 2003 Wasabi Systems, Inc.
@@ -44,7 +44,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.48 2003/10/20 15:33:48 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.49 2003/10/20 15:34:25 thorpej Exp $");
 
 #include "bpfilter.h"
 #include "rnd.h"
@@ -2404,7 +2404,7 @@
        for (i = 0; i < wordcnt; i++) {
                if (wm_acquire_eeprom(sc)) {
                        /* Failed to acquire EEPROM. */
-                       *data = 0xffff;
+                       data[i] = 0xffff;
                        continue;
                }
 



Home | Main Index | Thread Index | Old Index