From 7d7307d2e1689754b4def7b381a46fd20919d442 Mon Sep 17 00:00:00 2001 From: luigi Date: Thu, 15 Apr 2004 20:31:10 +0000 Subject: Remove improper use of if_addrhead in device drivers to check if the link-level address has been initialized already. The majority of modern drivers never does this and works fine, which makes me think that the check is totally unnecessary and a residue of cut&paste from other drivers. This change is done to simplify locking because now almost none of the drivers uses this field. The exceptions are "ct" "ctau" and "cx" where i am not sure if i can remove that part. --- sys/dev/sbni/if_sbni.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'sys/dev/sbni') diff --git a/sys/dev/sbni/if_sbni.c b/sys/dev/sbni/if_sbni.c index e4cacf2..42c6573 100644 --- a/sys/dev/sbni/if_sbni.c +++ b/sys/dev/sbni/if_sbni.c @@ -264,10 +264,6 @@ sbni_init(void *xsc) sc = (struct sbni_softc *)xsc; ifp = &sc->arpcom.ac_if; - /* address not known */ - if (TAILQ_EMPTY(&ifp->if_addrhead)) - return; - /* * kludge to avoid multiple initialization when more than once * protocols configured -- cgit v1.1