From: Oleksij Rempel Date: Sat, 11 May 2013 19:58:07 +0000 (+0200) Subject: remove unused variable in ah_fillTxDesc X-Git-Tag: 1.4.0~12^2^2~10 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=0b3d4f0c28a6798b3699aae78c7e3114b6db0bad;p=open-ath9k-htc-firmware.git remove unused variable in ah_fillTxDesc Signed-off-by: Oleksij Rempel --- diff --git a/target_firmware/wlan/ah.h b/target_firmware/wlan/ah.h index 73e43e7..4b3e845 100755 --- a/target_firmware/wlan/ah.h +++ b/target_firmware/wlan/ah.h @@ -423,7 +423,7 @@ struct ath_hal a_uint32_t txRate0, a_uint32_t txTries0, a_uint32_t keyIx, a_uint32_t flags, a_uint32_t rtsctsRate, a_uint32_t rtsctsDuration); - HAL_BOOL __ahdecl(*ah_fillTxDesc)(struct ath_hal *, struct ath_tx_desc *, + HAL_BOOL __ahdecl(*ah_fillTxDesc)(struct ath_tx_desc *, a_uint32_t segLen, HAL_BOOL firstSeg, HAL_BOOL lastSeg, const struct ath_tx_desc *); HAL_BOOL __ahdecl (*ah_fillKeyTxDesc) (struct ath_hal *, struct ath_tx_desc *, HAL_KEY_TYPE); diff --git a/target_firmware/wlan/ar5416_hw.c b/target_firmware/wlan/ar5416_hw.c index ffd30da..27aae5d 100644 --- a/target_firmware/wlan/ar5416_hw.c +++ b/target_firmware/wlan/ar5416_hw.c @@ -663,7 +663,7 @@ HAL_BOOL ar5416SetupTxDesc_20(struct ath_tx_desc *ds, #undef RTSCTS } -HAL_BOOL ar5416FillTxDesc_20(struct ath_hal *ah, struct ath_tx_desc *ds, +HAL_BOOL ar5416FillTxDesc_20(struct ath_tx_desc *ds, a_uint32_t segLen, HAL_BOOL firstSeg, HAL_BOOL lastSeg, const struct ath_tx_desc *ds0) { diff --git a/target_firmware/wlan/ar5416desc.h b/target_firmware/wlan/ar5416desc.h index 42c6ab7..8448b67 100755 --- a/target_firmware/wlan/ar5416desc.h +++ b/target_firmware/wlan/ar5416desc.h @@ -463,7 +463,7 @@ extern HAL_BOOL ar5416SetupTxDesc_20(struct ath_tx_desc *ds, a_uint32_t txRate0, a_uint32_t txTries0, a_uint32_t keyIx, a_uint32_t flags, a_uint32_t rtsctsRate, a_uint32_t rtsctsDuration); -extern HAL_BOOL ar5416FillTxDesc_20(struct ath_hal *ah, struct ath_tx_desc *ds, +extern HAL_BOOL ar5416FillTxDesc_20(struct ath_tx_desc *ds, a_uint32_t segLen, HAL_BOOL firstSeg, HAL_BOOL lastSeg, const struct ath_tx_desc *ds0); extern HAL_BOOL ar5416FillKeyTxDesc_20(struct ath_hal *ah, struct ath_tx_desc *,HAL_KEY_TYPE); diff --git a/target_firmware/wlan/if_ath.c b/target_firmware/wlan/if_ath.c index 89c42d4..72cbda8 100755 --- a/target_firmware/wlan/if_ath.c +++ b/target_firmware/wlan/if_ath.c @@ -553,7 +553,7 @@ static void ath_beacon_setup(struct ath_softc_tgt *sc, , 0 , 0); - ah->ah_fillTxDesc(ah, ds + ah->ah_fillTxDesc(ds , asf_roundup(adf_nbuf_len(skb), 4) , AH_TRUE , AH_TRUE diff --git a/target_firmware/wlan/if_owl.c b/target_firmware/wlan/if_owl.c index cececaf..890aa7f 100755 --- a/target_firmware/wlan/if_owl.c +++ b/target_firmware/wlan/if_owl.c @@ -253,7 +253,7 @@ static void ath_filltxdesc(struct ath_softc_tgt *sc, struct ath_tx_buf *bf) } else ds->ds_link = ATH_BUF_GET_DESC_PHY_ADDR_WITH_IDX(bf, i+1); - ah->ah_fillTxDesc(ah, ds + ah->ah_fillTxDesc(ds , bf->bf_dmamap_info.dma_segs[i].len , i == 0 , i == (bf->bf_dmamap_info.nsegs - 1)