diff options
| author | Warner Losh <imp@FreeBSD.org> | 2022-04-05 02:33:25 +0000 |
|---|---|---|
| committer | Warner Losh <imp@FreeBSD.org> | 2022-04-05 04:30:45 +0000 |
| commit | c972f2c065bdb7031e7935aac406365e4810df19 (patch) | |
| tree | 67c18368c3ed010f8949c5552576073d4ad24408 /sys/dev/xl | |
| parent | 76e96756633e5d33f334bb48bedf981557272ead (diff) | |
Diffstat (limited to 'sys/dev/xl')
| -rw-r--r-- | sys/dev/xl/if_xl.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/dev/xl/if_xl.c b/sys/dev/xl/if_xl.c index ca6184758815..ae4d9fb8f5ff 100644 --- a/sys/dev/xl/if_xl.c +++ b/sys/dev/xl/if_xl.c @@ -1069,14 +1069,12 @@ xl_attach(device_t dev) struct xl_softc *sc; struct ifnet *ifp; int media, pmcap; - int error = 0, phy, rid, res, unit; + int error = 0, phy, rid, res; uint16_t did; sc = device_get_softc(dev); sc->xl_dev = dev; - unit = device_get_unit(dev); - mtx_init(&sc->xl_mtx, device_get_nameunit(dev), MTX_NETWORK_LOCK, MTX_DEF); ifmedia_init(&sc->ifmedia, 0, xl_ifmedia_upd, xl_ifmedia_sts); |
