summaryrefslogtreecommitdiffstats
path: root/sys/dev/fatm
diff options
context:
space:
mode:
authorharti <harti@FreeBSD.org>2005-07-01 10:45:02 +0000
committerharti <harti@FreeBSD.org>2005-07-01 10:45:02 +0000
commitabe7cea16b1e12670e6e9c740ae48688440ce7e6 (patch)
treea3f8b55d445efe6a695d631e2472f56742fe4dbb /sys/dev/fatm
parente8f7047163a6b4a9a0d79437f988e894ce22b9b2 (diff)
downloadFreeBSD-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/fatm')
-rw-r--r--sys/dev/fatm/if_fatm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/fatm/if_fatm.c b/sys/dev/fatm/if_fatm.c
index 4842db4..25c2f78 100644
--- a/sys/dev/fatm/if_fatm.c
+++ b/sys/dev/fatm/if_fatm.c
@@ -2054,7 +2054,7 @@ fatm_start(struct ifnet *ifp)
u_int mlen, vpi, vci;
struct card_vcc *vc;
- sc = (struct fatm_softc *)ifp->if_softc;
+ sc = ifp->if_softc;
while (1) {
IF_DEQUEUE(&ifp->if_snd, m);
@@ -2544,7 +2544,7 @@ fatm_detach(device_t dev)
struct fatm_softc *sc;
struct txqueue *tx;
- sc = (struct fatm_softc *)device_get_softc(dev);
+ sc = device_get_softc(dev);
if (device_is_alive(dev)) {
FATM_LOCK(sc);
OpenPOWER on IntegriCloud