diff options
author | harti <harti@FreeBSD.org> | 2005-07-01 10:45:02 +0000 |
---|---|---|
committer | harti <harti@FreeBSD.org> | 2005-07-01 10:45:02 +0000 |
commit | abe7cea16b1e12670e6e9c740ae48688440ce7e6 (patch) | |
tree | a3f8b55d445efe6a695d631e2472f56742fe4dbb /sys/dev/patm | |
parent | e8f7047163a6b4a9a0d79437f988e894ce22b9b2 (diff) | |
download | FreeBSD-src-abe7cea16b1e12670e6e9c740ae48688440ce7e6.zip FreeBSD-src-abe7cea16b1e12670e6e9c740ae48688440ce7e6.tar.gz |
Fix another fallout from the ifnet change that assumed that a softc
starts with an ifatm which in turns has an ifnet. Remove also a couple
of unneccessary casts that could hide such things in the future.
Approved by: re
Diffstat (limited to 'sys/dev/patm')
-rw-r--r-- | sys/dev/patm/if_patm_attach.c | 2 | ||||
-rw-r--r-- | sys/dev/patm/if_patm_tx.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/patm/if_patm_attach.c b/sys/dev/patm/if_patm_attach.c index 1b4e0c2..884f16c 100644 --- a/sys/dev/patm/if_patm_attach.c +++ b/sys/dev/patm/if_patm_attach.c @@ -465,7 +465,7 @@ patm_detach(device_t dev) { struct patm_softc *sc; - sc = (struct patm_softc *)device_get_softc(dev); + sc = device_get_softc(dev); mtx_lock(&sc->mtx); patm_stop(sc); diff --git a/sys/dev/patm/if_patm_tx.c b/sys/dev/patm/if_patm_tx.c index 975f56a..887e2d5 100644 --- a/sys/dev/patm/if_patm_tx.c +++ b/sys/dev/patm/if_patm_tx.c @@ -282,7 +282,7 @@ patm_tx_vcc_closed(struct patm_softc *sc, struct patm_vcc *vcc) void patm_start(struct ifnet *ifp) { - struct patm_softc *sc = (struct patm_softc *)ifp->if_softc; + struct patm_softc *sc = ifp->if_softc; struct mbuf *m; struct atm_pseudohdr *aph; u_int vpi, vci, cid; |