summaryrefslogtreecommitdiffstats
path: root/sys/dev/wl
diff options
context:
space:
mode:
authorluigi <luigi@FreeBSD.org>2004-04-15 20:31:10 +0000
committerluigi <luigi@FreeBSD.org>2004-04-15 20:31:10 +0000
commit7d7307d2e1689754b4def7b381a46fd20919d442 (patch)
tree5724ee7f72224819d2453cd24c370e176d84429f /sys/dev/wl
parentfa9222585e2ae94c9da702e4b6a4fd959416bd33 (diff)
downloadFreeBSD-src-7d7307d2e1689754b4def7b381a46fd20919d442.zip
FreeBSD-src-7d7307d2e1689754b4def7b381a46fd20919d442.tar.gz
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.
Diffstat (limited to 'sys/dev/wl')
-rw-r--r--sys/dev/wl/if_wl.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/dev/wl/if_wl.c b/sys/dev/wl/if_wl.c
index 47ee647..d582b8f 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) {
OpenPOWER on IntegriCloud