Better fix for warning in ath_return_txbuf_locked
authorproski <proski@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Tue, 27 Nov 2007 21:55:45 +0000 (21:55 +0000)
committerproski <proski@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Tue, 27 Nov 2007 21:55:45 +0000 (21:55 +0000)
bufaddr doesn't need to be (void *).  Make it (struct ath_buf *).

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2984 0192ed92-7a03-0410-a25b-9323aeb14dbd

ath/if_ath.c

index 75d09dd0f4efe52031285879f78d0d817ed409f1..fc8c806f06c4cb341682775d9db0a07507728bf3 100644 (file)
@@ -11665,12 +11665,12 @@ ath_return_txbuf_locked_debug(struct ath_softc *sc, struct ath_buf **buf, const
 ath_return_txbuf_locked(struct ath_softc *sc, struct ath_buf **buf) 
 #endif /* #ifdef IEEE80211_DEBUG_REFCNT */
 {
-       void *bufaddr;
+       struct ath_buf *bufaddr;
        ATH_TXBUF_LOCK_ASSERT(sc);
 
        if ((buf == NULL) || ((*buf) == NULL)) 
                return;
-       bufaddr = (void *)*buf;
+       bufaddr = *buf;
 #ifdef IEEE80211_DEBUG_REFCNT
        cleanup_ath_buf_debug(sc, (*buf), BUS_DMA_TODEVICE, func, line);
 #else