summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
ebe8ee9)
Pointers don't fit u_int32_t on 64-bit systems. Besides, conversion
from pointers to integers and vice versa should be generally avoided.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2906
0192ed92-7a03-0410-a25b-
9323aeb14dbd
ath_return_txbuf_locked(struct ath_softc *sc, struct ath_buf **buf)
#endif /* #ifdef IEEE80211_DEBUG_REFCNT */
{
ath_return_txbuf_locked(struct ath_softc *sc, struct ath_buf **buf)
#endif /* #ifdef IEEE80211_DEBUG_REFCNT */
{
if ((buf == NULL) || ((*buf) == NULL))
return;
if ((buf == NULL) || ((*buf) == NULL))
return;
- bufaddr = (u_int32_t)*buf;
+ bufaddr = (void *)*buf;
#ifdef IEEE80211_DEBUG_REFCNT
cleanup_ath_buf_debug(sc, (*buf), BUS_DMA_TODEVICE, func, line);
#else
#ifdef IEEE80211_DEBUG_REFCNT
cleanup_ath_buf_debug(sc, (*buf), BUS_DMA_TODEVICE, func, line);
#else
DPRINTF(sc, ATH_DEBUG_TXBUF,
"[TXBUF=%03d/%03d] %s:%d -> %s:%d returned txbuf %p.\n",
ath_get_buffer_count(), ATH_TXBUF,
DPRINTF(sc, ATH_DEBUG_TXBUF,
"[TXBUF=%03d/%03d] %s:%d -> %s:%d returned txbuf %p.\n",
ath_get_buffer_count(), ATH_TXBUF,
- func, line, __func__, __LINE__,
- (void*)bufaddr);
+ func, line, __func__, __LINE__, bufaddr);
#endif /* #ifdef IEEE80211_DEBUG_REFCNT */
if (sc->sc_devstopped) {
++sc->sc_reapcount;
#endif /* #ifdef IEEE80211_DEBUG_REFCNT */
if (sc->sc_devstopped) {
++sc->sc_reapcount;