diff options
author | luigi <luigi@FreeBSD.org> | 2004-04-15 20:31:10 +0000 |
---|---|---|
committer | luigi <luigi@FreeBSD.org> | 2004-04-15 20:31:10 +0000 |
commit | 7d7307d2e1689754b4def7b381a46fd20919d442 (patch) | |
tree | 5724ee7f72224819d2453cd24c370e176d84429f /sys/dev/cs | |
parent | fa9222585e2ae94c9da702e4b6a4fd959416bd33 (diff) | |
download | FreeBSD-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/cs')
-rw-r--r-- | sys/dev/cs/if_cs.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/dev/cs/if_cs.c b/sys/dev/cs/if_cs.c index 3b28691..a10d25d 100644 --- a/sys/dev/cs/if_cs.c +++ b/sys/dev/cs/if_cs.c @@ -699,10 +699,6 @@ cs_init(void *xsc) struct ifnet *ifp = &sc->arpcom.ac_if; int i, s, rx_cfg; - /* address not known */ - if (TAILQ_EMPTY(&ifp->if_addrhead)) /* unlikely? XXX */ - return; - /* * reset whatchdog timer */ |