diff options
author | Hartmut Brandt <harti@FreeBSD.org> | 2005-07-01 10:45:02 +0000 |
---|---|---|
committer | Hartmut Brandt <harti@FreeBSD.org> | 2005-07-01 10:45:02 +0000 |
commit | 4df70a92b51f9f592b8fb61684b62890e4051db9 (patch) | |
tree | a3f8b55d445efe6a695d631e2472f56742fe4dbb /sys/dev/patm/if_patm_attach.c | |
parent | e5610d524c3acfb6cfcdcacbf8987f1d744be6e0 (diff) |
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
Notes
Notes:
svn path=/head/; revision=147721
Diffstat (limited to 'sys/dev/patm/if_patm_attach.c')
-rw-r--r-- | sys/dev/patm/if_patm_attach.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/patm/if_patm_attach.c b/sys/dev/patm/if_patm_attach.c index 1b4e0c285b94..884f16cc3ca9 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); |