mirror of
https://github.com/proski/madwifi
synced 2024-11-29 09:43:14 +03:00
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
This commit is contained in:
parent
261fcaa170
commit
613b48e369
@ -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)
|
ath_return_txbuf_locked(struct ath_softc *sc, struct ath_buf **buf)
|
||||||
#endif /* #ifdef IEEE80211_DEBUG_REFCNT */
|
#endif /* #ifdef IEEE80211_DEBUG_REFCNT */
|
||||||
{
|
{
|
||||||
void *bufaddr;
|
struct ath_buf *bufaddr;
|
||||||
ATH_TXBUF_LOCK_ASSERT(sc);
|
ATH_TXBUF_LOCK_ASSERT(sc);
|
||||||
|
|
||||||
if ((buf == NULL) || ((*buf) == NULL))
|
if ((buf == NULL) || ((*buf) == NULL))
|
||||||
return;
|
return;
|
||||||
bufaddr = (void *)*buf;
|
bufaddr = *buf;
|
||||||
#ifdef IEEE80211_DEBUG_REFCNT
|
#ifdef IEEE80211_DEBUG_REFCNT
|
||||||
cleanup_ath_buf_debug(sc, (*buf), BUS_DMA_TODEVICE, func, line);
|
cleanup_ath_buf_debug(sc, (*buf), BUS_DMA_TODEVICE, func, line);
|
||||||
#else
|
#else
|
||||||
|
Loading…
Reference in New Issue
Block a user