Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pcmcia Oops; fix a bug in the previous:



details:   https://anonhg.NetBSD.org/src/rev/1155c62e4623
branches:  trunk
changeset: 481292:1155c62e4623
user:      mycroft <mycroft%NetBSD.org@localhost>
date:      Tue Jan 25 18:04:07 2000 +0000

description:
Oops; fix a bug in the previous:
If one entry has the DL10019 bit set and another does not, don't fail
immediately if the checksum doesn't work.

diffstat:

 sys/dev/pcmcia/if_ne_pcmcia.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (21 lines):

diff -r 34fa7b85d067 -r 1155c62e4623 sys/dev/pcmcia/if_ne_pcmcia.c
--- a/sys/dev/pcmcia/if_ne_pcmcia.c     Tue Jan 25 17:31:05 2000 +0000
+++ b/sys/dev/pcmcia/if_ne_pcmcia.c     Tue Jan 25 18:04:07 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_ne_pcmcia.c,v 1.46 2000/01/25 08:06:50 mycroft Exp $        */
+/*     $NetBSD: if_ne_pcmcia.c,v 1.47 2000/01/25 18:04:07 mycroft Exp $        */
 
 /*
  * Copyright (c) 1997 Marc Horowitz.  All rights reserved.
@@ -556,9 +556,8 @@
                        sum += bus_space_read_1(nsc->sc_asict, nsc->sc_asich,
                            PAR0 + j);
                if (sum != 0xff) {
-                       printf("%s: sum(0x%x) should be 0xff\n",
-                           dsc->sc_dev.dv_xname, sum);
-                       return;
+                       ++i;
+                       goto again;
                }
                for (j = 0; j < ETHER_ADDR_LEN; j++)
                        myea[j] = bus_space_read_1(nsc->sc_asict,



Home | Main Index | Thread Index | Old Index