From 0318355d0e0c749359d4d8d384fb34240e4b1a4e Mon Sep 17 00:00:00 2001 From: Luigi Rizzo 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/wl/if_wl.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'sys/dev/wl') diff --git a/sys/dev/wl/if_wl.c b/sys/dev/wl/if_wl.c index 47ee64708024..d582b8f33458 100644 --- a/sys/dev/wl/if_wl.c +++ b/sys/dev/wl/if_wl.c @@ -806,8 +806,6 @@ wlinit(void *xsc) if (sc->wl_if.if_flags & IFF_DEBUG) printf("wl%d: entered wlinit()\n",sc->unit); #endif - if (TAILQ_FIRST(&ifp->if_addrhead) == (struct ifaddr *)0) - return; WL_LOCK(sc); oldpri = splimp(); if ((stat = wlhwrst(sc)) == TRUE) { -- cgit v1.3