aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ed
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2005-06-15 20:23:40 +0000
committerBrooks Davis <brooks@FreeBSD.org>2005-06-15 20:23:40 +0000
commitc3f967ce8df19ce6c54c333812e20b700d2717a5 (patch)
tree478171455e91c560379becf06ab3e1fb001b5b72 /sys/dev/ed
parentbcdc9124d867f0b40a038e00a45943fa503b86c0 (diff)
Notes
Diffstat (limited to 'sys/dev/ed')
-rw-r--r--sys/dev/ed/if_ed.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/ed/if_ed.c b/sys/dev/ed/if_ed.c
index a58023b2e4afc..4fa719d608cf1 100644
--- a/sys/dev/ed/if_ed.c
+++ b/sys/dev/ed/if_ed.c
@@ -616,7 +616,7 @@ ed_init(void *xsc)
static __inline void
ed_xmit(struct ed_softc *sc)
{
- struct ifnet *ifp = (struct ifnet *)sc;
+ struct ifnet *ifp = sc->ifp;
unsigned short len;
if (sc->gone)
@@ -964,7 +964,7 @@ void
edintr(void *arg)
{
struct ed_softc *sc = (struct ed_softc*) arg;
- struct ifnet *ifp = (struct ifnet *)sc;
+ struct ifnet *ifp = sc->ifp;
u_char isr;
int count;
@@ -1479,7 +1479,7 @@ ed_pio_writemem(struct ed_softc *sc, uint8_t *src, uint16_t dst, uint16_t len)
static u_short
ed_pio_write_mbufs(struct ed_softc *sc, struct mbuf *m, long dst)
{
- struct ifnet *ifp = (struct ifnet *)sc;
+ struct ifnet *ifp = sc->ifp;
unsigned short total_len, dma_len;
struct mbuf *mp;
int maxwait = 200; /* about 240us */
@@ -1691,7 +1691,7 @@ ed_child_detached(device_t dev, device_t child)
static void
ed_setrcr(struct ed_softc *sc)
{
- struct ifnet *ifp = (struct ifnet *)sc;
+ struct ifnet *ifp = sc->ifp;
int i;
u_char reg1;