From d02e700e662d877f1005661c06a9d15963f45387 Mon Sep 17 00:00:00 2001 From: dholland Date: Sun, 9 Mar 2008 20:32:45 +0000 Subject: [PATCH] Use NE2000_TYPE_UNKNOWN instead of just 0 in a couple places. --- sys/dev/ic/ne2000.c | 6 +++--- sys/dev/pcmcia/if_ne_pcmcia.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/sys/dev/ic/ne2000.c b/sys/dev/ic/ne2000.c index 3d4c2d11211c..4dc99f2b183f 100644 --- a/sys/dev/ic/ne2000.c +++ b/sys/dev/ic/ne2000.c @@ -1,4 +1,4 @@ -/* $NetBSD: ne2000.c,v 1.55 2007/10/19 11:59:57 ad Exp $ */ +/* $NetBSD: ne2000.c,v 1.56 2008/03/09 20:32:45 dholland Exp $ */ /*- * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc. @@ -55,7 +55,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: ne2000.c,v 1.55 2007/10/19 11:59:57 ad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ne2000.c,v 1.56 2008/03/09 20:32:45 dholland Exp $"); #include "opt_ipkdb.h" @@ -321,7 +321,7 @@ ne2000_detect(nict, nich, asict, asich) { static u_int8_t test_pattern[32] = "THIS is A memory TEST pattern"; u_int8_t test_buffer[32], tmp; - int i, rv = 0; + int i, rv = NE2000_TYPE_UNKNOWN; /* Reset the board. */ #ifdef GWETHER diff --git a/sys/dev/pcmcia/if_ne_pcmcia.c b/sys/dev/pcmcia/if_ne_pcmcia.c index 6e0b0bf06b5a..815d21c23e59 100644 --- a/sys/dev/pcmcia/if_ne_pcmcia.c +++ b/sys/dev/pcmcia/if_ne_pcmcia.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_ne_pcmcia.c,v 1.150 2007/10/19 12:01:04 ad Exp $ */ +/* $NetBSD: if_ne_pcmcia.c,v 1.151 2008/03/09 20:32:45 dholland Exp $ */ /* * Copyright (c) 1997 Marc Horowitz. All rights reserved. @@ -30,7 +30,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: if_ne_pcmcia.c,v 1.150 2007/10/19 12:01:04 ad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_ne_pcmcia.c,v 1.151 2008/03/09 20:32:45 dholland Exp $"); #include #include @@ -711,7 +711,7 @@ found: /* * Check for a Realtek 8019. */ - if (nsc->sc_type == 0) { + if (nsc->sc_type == NE2000_TYPE_UNKNOWN) { bus_space_write_1(dsc->sc_regt, dsc->sc_regh, ED_P0_CR, ED_CR_PAGE_0 | ED_CR_STP); if (bus_space_read_1(dsc->sc_regt, dsc->sc_regh,