From: Oleksij Rempel Date: Sat, 11 May 2013 18:47:31 +0000 (+0200) Subject: remove unused variables in ar5416Attach X-Git-Tag: 1.4.0~12^2^2~13 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4eb431277283cbf284753f1702388cefad210864;p=librecmc%2Fopen-ath9k-htc-firmware.git remove unused variables in ar5416Attach Signed-off-by: Oleksij Rempel --- diff --git a/target_firmware/wlan/ah.c b/target_firmware/wlan/ah.c index ea79d12..6f5be75 100755 --- a/target_firmware/wlan/ah.c +++ b/target_firmware/wlan/ah.c @@ -37,8 +37,8 @@ #include "ah_internal.h" #include -extern struct ath_hal *ar5416Attach(a_uint32_t devid,HAL_SOFTC sc, adf_os_device_t dev, - a_uint32_t flags, HAL_STATUS *status); +extern struct ath_hal *ar5416Attach(HAL_SOFTC sc, adf_os_device_t dev, + HAL_STATUS *status); struct ath_hal* ath_hal_attach_tgt(a_uint32_t devid,HAL_SOFTC sc, @@ -47,8 +47,7 @@ ath_hal_attach_tgt(a_uint32_t devid,HAL_SOFTC sc, { struct ath_hal *ah = AH_NULL; - devid = AR5416_DEVID_PCIE; - ah = ar5416Attach(devid, sc, dev, flags, error); + ah = ar5416Attach(sc, dev, error); return ah; } diff --git a/target_firmware/wlan/ar5416_hw.c b/target_firmware/wlan/ar5416_hw.c index 6cccf57..9959ac3 100644 --- a/target_firmware/wlan/ar5416_hw.c +++ b/target_firmware/wlan/ar5416_hw.c @@ -88,8 +88,7 @@ void ar5416Detach(struct ath_hal *ah) } struct ath_hal * -ar5416Attach(a_uint32_t devid,HAL_SOFTC sc, adf_os_device_t dev, - a_uint32_t flags, HAL_STATUS *status) +ar5416Attach(HAL_SOFTC sc, adf_os_device_t dev, HAL_STATUS *status) { struct ath_hal_5416 *ahp; struct ath_hal *ah;