From 3b66fd12068952644141c82e013ce7a79ec8f3eb Mon Sep 17 00:00:00 2001 From: Oleksij Rempel Date: Sat, 11 May 2013 20:56:20 +0200 Subject: [PATCH] remove unused variable in ah_setupRxDesc Signed-off-by: Oleksij Rempel --- target_firmware/wlan/ah.h | 2 +- target_firmware/wlan/ar5416_hw.c | 2 +- target_firmware/wlan/ar5416desc.h | 4 ++-- target_firmware/wlan/if_ath.c | 4 +--- 4 files changed, 5 insertions(+), 7 deletions(-) diff --git a/target_firmware/wlan/ah.h b/target_firmware/wlan/ah.h index e391a9d..7b40378 100755 --- a/target_firmware/wlan/ah.h +++ b/target_firmware/wlan/ah.h @@ -439,7 +439,7 @@ struct ath_hal /* Target receive Functions */ void __ahdecl(*ah_setRxDP)(struct ath_hal*, a_uint32_t rxdp); - HAL_BOOL __ahdecl(*ah_setupRxDesc)(struct ath_hal *, struct ath_rx_desc *, + HAL_BOOL __ahdecl(*ah_setupRxDesc)(struct ath_rx_desc *, a_uint32_t size, a_uint32_t flags); HAL_STATUS __ahdecl(*ah_procRxDesc)(struct ath_hal *, struct ath_desc *, a_uint32_t phyAddr, struct ath_desc *next, u_int64_t tsf); diff --git a/target_firmware/wlan/ar5416_hw.c b/target_firmware/wlan/ar5416_hw.c index 9959ac3..12addf9 100644 --- a/target_firmware/wlan/ar5416_hw.c +++ b/target_firmware/wlan/ar5416_hw.c @@ -329,7 +329,7 @@ void ar5416StopPcuReceive(struct ath_hal *ah) OS_REG_SET_BIT(ah, AR_DIAG_SW, AR_DIAG_RX_DIS); } -HAL_BOOL ar5416SetupRxDesc_20(struct ath_hal *ah, struct ath_rx_desc *ds, +HAL_BOOL ar5416SetupRxDesc_20(struct ath_rx_desc *ds, a_uint32_t size, a_uint32_t flags) { struct ar5416_desc *ads = AR5416DESC(ds); diff --git a/target_firmware/wlan/ar5416desc.h b/target_firmware/wlan/ar5416desc.h index fe2d561..9406b64 100755 --- a/target_firmware/wlan/ar5416desc.h +++ b/target_firmware/wlan/ar5416desc.h @@ -486,8 +486,8 @@ extern void ar5416Set11nBurstDuration_20(struct ath_hal *ah, struct ath_tx_desc a_uint32_t burstDuration); extern void ar5416Set11nVirtualMoreFrag_20(struct ath_hal *ah, struct ath_tx_desc *ds, a_uint32_t vmf); -extern HAL_BOOL ar5416SetupRxDesc_20(struct ath_hal *, - struct ath_rx_desc *, a_uint32_t size, a_uint32_t flags); +extern HAL_BOOL ar5416SetupRxDesc_20(struct ath_rx_desc *, + a_uint32_t size, a_uint32_t flags); extern HAL_STATUS ar5416ProcRxDescFast_20(struct ath_hal *ah, struct ath_rx_desc *, a_uint32_t, struct ath_desc *, diff --git a/target_firmware/wlan/if_ath.c b/target_firmware/wlan/if_ath.c index aa43c23..8cbda3b 100755 --- a/target_firmware/wlan/if_ath.c +++ b/target_firmware/wlan/if_ath.c @@ -255,9 +255,7 @@ static a_int32_t ath_rxdesc_init(struct ath_softc_tgt *sc, struct ath_rx_desc *d ds->ds_link = 0; adf_nbuf_peek_header(ds->ds_nbuf, &anbdata, &anblen); - ah->ah_setupRxDesc(ah, ds, - adf_nbuf_tailroom(ds->ds_nbuf), - 0); + ah->ah_setupRxDesc(ds, adf_nbuf_tailroom(ds->ds_nbuf), 0); if (sc->sc_rxlink == NULL) { ah->ah_setRxDP(ah, ds->ds_daddr); -- 2.25.1