summaryrefslogtreecommitdiff
path: root/sys/dev/ic/ti.c
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2011-06-21 16:52:46 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2011-06-21 16:52:46 +0000
commitb50edea001b4bd82ae333fbd20b35c63b80e60cc (patch)
tree7dddd5684988725e72e04c87bb6afe039543d3c3 /sys/dev/ic/ti.c
parent065e08b541aea43b271d4bb149d66aebf544153a (diff)
remove some unnecessary casts. ok blambert deraadt kettenis matthew
Diffstat (limited to 'sys/dev/ic/ti.c')
-rw-r--r--sys/dev/ic/ti.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/dev/ic/ti.c b/sys/dev/ic/ti.c
index e783f52c9c7..85e3a2af603 100644
--- a/sys/dev/ic/ti.c
+++ b/sys/dev/ic/ti.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ti.c,v 1.3 2010/09/20 07:40:41 deraadt Exp $ */
+/* $OpenBSD: ti.c,v 1.4 2011/06/21 16:52:45 tedu Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
@@ -954,7 +954,7 @@ ti_free_rx_ring_std(struct ti_softc *sc)
sc->ti_cdata.ti_rx_std_map[i]);
sc->ti_cdata.ti_rx_std_map[i] = 0;
}
- bzero((char *)&sc->ti_rdata->ti_rx_std_ring[i],
+ bzero(&sc->ti_rdata->ti_rx_std_ring[i],
sizeof(struct ti_rx_desc));
}
}
@@ -986,7 +986,7 @@ ti_free_rx_ring_jumbo(struct ti_softc *sc)
m_freem(sc->ti_cdata.ti_rx_jumbo_chain[i]);
sc->ti_cdata.ti_rx_jumbo_chain[i] = NULL;
}
- bzero((char *)&sc->ti_rdata->ti_rx_jumbo_ring[i],
+ bzero(&sc->ti_rdata->ti_rx_jumbo_ring[i],
sizeof(struct ti_rx_desc));
}
}
@@ -1020,7 +1020,7 @@ ti_free_rx_ring_mini(struct ti_softc *sc)
sc->ti_cdata.ti_rx_mini_map[i]);
sc->ti_cdata.ti_rx_mini_map[i] = 0;
}
- bzero((char *)&sc->ti_rdata->ti_rx_mini_ring[i],
+ bzero(&sc->ti_rdata->ti_rx_mini_ring[i],
sizeof(struct ti_rx_desc));
}
}
@@ -1042,7 +1042,7 @@ ti_free_tx_ring(struct ti_softc *sc)
sc->ti_cdata.ti_tx_map[i], link);
sc->ti_cdata.ti_tx_map[i] = 0;
}
- bzero((char *)&sc->ti_rdata->ti_tx_ring[i],
+ bzero(&sc->ti_rdata->ti_tx_ring[i],
sizeof(struct ti_tx_desc));
}
@@ -1199,7 +1199,7 @@ ti_iff(struct ti_softc *sc)
if (mc == NULL)
panic("ti_iff");
- bcopy(enm->enm_addrlo, (char *)&mc->mc_addr,
+ bcopy(enm->enm_addrlo, &mc->mc_addr,
ETHER_ADDR_LEN);
SLIST_INSERT_HEAD(&sc->ti_mc_listhead, mc,
mc_entries);
@@ -1510,7 +1510,7 @@ ti_gibinit(struct ti_softc *sc)
* a Tigon 1 chip.
*/
CSR_WRITE_4(sc, TI_WINBASE, TI_TX_RING_BASE);
- bzero((char *)sc->ti_rdata->ti_tx_ring,
+ bzero(sc->ti_rdata->ti_tx_ring,
TI_TX_RING_CNT * sizeof(struct ti_tx_desc));
rcb = &sc->ti_rdata->ti_info.ti_tx_rcb;
if (sc->ti_hwrev == TI_HWREV_TIGON)