From 4eb431277283cbf284753f1702388cefad210864 Mon Sep 17 00:00:00 2001 From: Oleksij Rempel Date: Sat, 11 May 2013 20:47:31 +0200 Subject: [PATCH] remove unused variables in ar5416Attach Signed-off-by: Oleksij Rempel --- target_firmware/wlan/ah.c | 7 +++---- target_firmware/wlan/ar5416_hw.c | 3 +-- 2 files changed, 4 insertions(+), 6 deletions(-) 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; -- 2.25.1