From 613b48e3693d35795ae45aac3da528d8aa4b8cc3 Mon Sep 17 00:00:00 2001 From: proski Date: Tue, 27 Nov 2007 21:55:45 +0000 Subject: [PATCH] Better fix for warning in ath_return_txbuf_locked 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ath/if_ath.c b/ath/if_ath.c index 75d09dd..fc8c806 100644 --- a/ath/if_ath.c +++ b/ath/if_ath.c @@ -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 -- 2.35.1