diff options
| author | mycroft <mycroft@NetBSD.org> | 1995-06-12 00:09:42 +0000 |
|---|---|---|
| committer | mycroft <mycroft@NetBSD.org> | 1995-06-12 00:09:42 +0000 |
| commit | d9fc8ef092eb67e4e07b9d3a16f6771d01202a2f (patch) | |
| tree | 80bc177f7c8b615cd2234eb9de75d04d6814d393 /sys/dev | |
| parent | 5b1fada2d50facb8d71b35515d7a6a65366d6ee6 (diff) | |
Remove check for if_addrlist == 0; if_attach() always puts one address on
the list, so this is a noop.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/ic/mb86960.c | 9 | ||||
| -rw-r--r-- | sys/dev/ic/mb86960var.h | 9 | ||||
| -rw-r--r-- | sys/dev/isa/if_ate.c | 9 | ||||
| -rw-r--r-- | sys/dev/isa/if_ed.c | 6 | ||||
| -rw-r--r-- | sys/dev/isa/if_eg.c | 6 | ||||
| -rw-r--r-- | sys/dev/isa/if_el.c | 6 | ||||
| -rw-r--r-- | sys/dev/isa/if_ep.c | 6 | ||||
| -rw-r--r-- | sys/dev/isa/if_fe.c | 9 | ||||
| -rw-r--r-- | sys/dev/isa/if_fmv.c | 9 | ||||
| -rw-r--r-- | sys/dev/isa/if_le.c | 6 |
10 files changed, 5 insertions, 70 deletions
diff --git a/sys/dev/ic/mb86960.c b/sys/dev/ic/mb86960.c index 6033ef058d0..92d73752ac9 100644 --- a/sys/dev/ic/mb86960.c +++ b/sys/dev/ic/mb86960.c @@ -1232,15 +1232,6 @@ fe_init(sc) fe_dump(LOG_INFO, sc); #endif - /* We need an address. */ - if (ifp->if_addrlist == 0) { -#if FE_DEBUG >= 1 - log(LOG_ERR, "%s: init() without any address\n", - sc->sc_dev.dv_xname); -#endif - return; - } - /* Start initializing 86960. */ s = splimp(); diff --git a/sys/dev/ic/mb86960var.h b/sys/dev/ic/mb86960var.h index 6033ef058d0..92d73752ac9 100644 --- a/sys/dev/ic/mb86960var.h +++ b/sys/dev/ic/mb86960var.h @@ -1232,15 +1232,6 @@ fe_init(sc) fe_dump(LOG_INFO, sc); #endif - /* We need an address. */ - if (ifp->if_addrlist == 0) { -#if FE_DEBUG >= 1 - log(LOG_ERR, "%s: init() without any address\n", - sc->sc_dev.dv_xname); -#endif - return; - } - /* Start initializing 86960. */ s = splimp(); diff --git a/sys/dev/isa/if_ate.c b/sys/dev/isa/if_ate.c index 6033ef058d0..92d73752ac9 100644 --- a/sys/dev/isa/if_ate.c +++ b/sys/dev/isa/if_ate.c @@ -1232,15 +1232,6 @@ fe_init(sc) fe_dump(LOG_INFO, sc); #endif - /* We need an address. */ - if (ifp->if_addrlist == 0) { -#if FE_DEBUG >= 1 - log(LOG_ERR, "%s: init() without any address\n", - sc->sc_dev.dv_xname); -#endif - return; - } - /* Start initializing 86960. */ s = splimp(); diff --git a/sys/dev/isa/if_ed.c b/sys/dev/isa/if_ed.c index 4075881d731..1754b6794d0 100644 --- a/sys/dev/isa/if_ed.c +++ b/sys/dev/isa/if_ed.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_ed.c,v 1.75 1995/05/28 11:29:46 mycroft Exp $ */ +/* $NetBSD: if_ed.c,v 1.76 1995/06/12 00:09:42 mycroft Exp $ */ /* * Device driver for National Semiconductor DS8390/WD83C690 based ethernet @@ -1159,10 +1159,6 @@ ed_init(sc) u_char command; u_long mcaf[2]; - /* Address not known. */ - if (ifp->if_addrlist == 0) - return; - /* * Initialize the NIC in the exact order outlined in the NS manual. * This init procedure is "mandatory"...don't change what or when diff --git a/sys/dev/isa/if_eg.c b/sys/dev/isa/if_eg.c index 69d9a9db1c7..59081c05c26 100644 --- a/sys/dev/isa/if_eg.c +++ b/sys/dev/isa/if_eg.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_eg.c,v 1.12 1995/04/17 12:08:53 cgd Exp $ */ +/* $NetBSD: if_eg.c,v 1.13 1995/06/12 00:09:45 mycroft Exp $ */ /* * Copyright (c) 1993 Dean Huxley <dean@fsa.ca> @@ -415,10 +415,6 @@ eginit(sc) { register struct ifnet *ifp = &sc->sc_arpcom.ac_if; - /* Address not known. */ - if (ifp->if_addrlist == 0) - return; - /* soft reset the board */ outb(sc->eg_ctl, EG_CTL_FLSH); delay(100); diff --git a/sys/dev/isa/if_el.c b/sys/dev/isa/if_el.c index cf3fdd63fd1..12f1cca7540 100644 --- a/sys/dev/isa/if_el.c +++ b/sys/dev/isa/if_el.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_el.c,v 1.24 1995/06/09 18:09:27 mycroft Exp $ */ +/* $NetBSD: if_el.c,v 1.25 1995/06/12 00:09:47 mycroft Exp $ */ /* * Copyright (c) 1994, Matthew E. Kimmel. Permission is hereby granted @@ -269,10 +269,6 @@ el_init(sc) int iobase = sc->sc_iobase; int s; - /* If address not known, do nothing. */ - if (ifp->if_addrlist == 0) - return; - s = splimp(); /* First, reset the board. */ diff --git a/sys/dev/isa/if_ep.c b/sys/dev/isa/if_ep.c index bcec73aa43f..1519cf5f1ef 100644 --- a/sys/dev/isa/if_ep.c +++ b/sys/dev/isa/if_ep.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_ep.c,v 1.72 1995/04/17 12:08:59 cgd Exp $ */ +/* $NetBSD: if_ep.c,v 1.73 1995/06/12 00:09:49 mycroft Exp $ */ /* * Copyright (c) 1994 Herb Peyerl <hpeyerl@novatel.ca> @@ -352,10 +352,6 @@ epinit(sc) register struct ifnet *ifp = &sc->sc_arpcom.ac_if; int s, i; - /* Address not known. */ - if (ifp->if_addrlist == 0) - return; - s = splimp(); while (inw(BASE + EP_STATUS) & S_COMMAND_IN_PROGRESS) diff --git a/sys/dev/isa/if_fe.c b/sys/dev/isa/if_fe.c index 6033ef058d0..92d73752ac9 100644 --- a/sys/dev/isa/if_fe.c +++ b/sys/dev/isa/if_fe.c @@ -1232,15 +1232,6 @@ fe_init(sc) fe_dump(LOG_INFO, sc); #endif - /* We need an address. */ - if (ifp->if_addrlist == 0) { -#if FE_DEBUG >= 1 - log(LOG_ERR, "%s: init() without any address\n", - sc->sc_dev.dv_xname); -#endif - return; - } - /* Start initializing 86960. */ s = splimp(); diff --git a/sys/dev/isa/if_fmv.c b/sys/dev/isa/if_fmv.c index 6033ef058d0..92d73752ac9 100644 --- a/sys/dev/isa/if_fmv.c +++ b/sys/dev/isa/if_fmv.c @@ -1232,15 +1232,6 @@ fe_init(sc) fe_dump(LOG_INFO, sc); #endif - /* We need an address. */ - if (ifp->if_addrlist == 0) { -#if FE_DEBUG >= 1 - log(LOG_ERR, "%s: init() without any address\n", - sc->sc_dev.dv_xname); -#endif - return; - } - /* Start initializing 86960. */ s = splimp(); diff --git a/sys/dev/isa/if_le.c b/sys/dev/isa/if_le.c index 980e8975d79..ad54804a8ea 100644 --- a/sys/dev/isa/if_le.c +++ b/sys/dev/isa/if_le.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_le.c,v 1.27 1995/05/10 14:04:14 mycroft Exp $ */ +/* $NetBSD: if_le.c,v 1.28 1995/06/12 00:09:56 mycroft Exp $ */ /* * LANCE Ethernet driver @@ -532,10 +532,6 @@ leinit(sc) register int timo; u_long a; - /* Address not known. */ - if (!ifp->if_addrlist) - return; - s = splimp(); /* Don't want to get in a weird state. */ |
