summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb2/ethernet/if_cdce2.c
diff options
context:
space:
mode:
authorthompsa <thompsa@FreeBSD.org>2009-01-18 05:35:58 +0000
committerthompsa <thompsa@FreeBSD.org>2009-01-18 05:35:58 +0000
commit78d081bd1e5039039438a2cfe82f8b3060fc181e (patch)
tree61a511294ef6dd45f63b2ecd3b1541bba0c25981 /sys/dev/usb2/ethernet/if_cdce2.c
parent1d6fbb62eacc39a465419b19aaecb889dd930b0b (diff)
downloadFreeBSD-src-78d081bd1e5039039438a2cfe82f8b3060fc181e.zip
FreeBSD-src-78d081bd1e5039039438a2cfe82f8b3060fc181e.tar.gz
Just put the ifnet pointer first in the softc like it needs to be rather than
adding another deliciously evil pointer.
Diffstat (limited to 'sys/dev/usb2/ethernet/if_cdce2.c')
-rw-r--r--sys/dev/usb2/ethernet/if_cdce2.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/dev/usb2/ethernet/if_cdce2.c b/sys/dev/usb2/ethernet/if_cdce2.c
index d833287..6b56c7e 100644
--- a/sys/dev/usb2/ethernet/if_cdce2.c
+++ b/sys/dev/usb2/ethernet/if_cdce2.c
@@ -444,7 +444,6 @@ alloc_transfers:
device_printf(dev, "cannot if_alloc()\n");
goto detach;
}
- sc->sc_evilhack = ifp;
ifp->if_softc = sc;
if_initname(ifp, "cdce", sc->sc_unit);
OpenPOWER on IntegriCloud