[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210224130356.51444-1-zhangkun4jr@163.com>
Date: Wed, 24 Feb 2021 21:03:56 +0800
From: zhangkun4jr@....com
To: Kalle Valo <kvalo@...eaurora.org>
Cc: "David S . Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>, ath9k-devel@....qualcomm.com,
linux-wireless@...r.kernel.org, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, Zhang Kun <zhangkun@...rlc.com>
Subject: [PATCH] ath9k:remove unneeded variable in ath9k_dump_legacy_btcoex
From: Zhang Kun <zhangkun@...rlc.com>
Remove unneeded variable 'len' in ath9k_dump_legacy_btcoex.
Signed-off-by: Zhang Kun <zhangkun@...rlc.com>
---
drivers/net/wireless/ath/ath9k/gpio.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/net/wireless/ath/ath9k/gpio.c b/drivers/net/wireless/ath/ath9k/gpio.c
index b457e52dd365..09ec937024c0 100644
--- a/drivers/net/wireless/ath/ath9k/gpio.c
+++ b/drivers/net/wireless/ath/ath9k/gpio.c
@@ -496,16 +496,14 @@ static int ath9k_dump_mci_btcoex(struct ath_softc *sc, u8 *buf, u32 size)
static int ath9k_dump_legacy_btcoex(struct ath_softc *sc, u8 *buf, u32 size)
{
-
struct ath_btcoex *btcoex = &sc->btcoex;
- u32 len = 0;
ATH_DUMP_BTCOEX("Stomp Type", btcoex->bt_stomp_type);
ATH_DUMP_BTCOEX("BTCoex Period (msec)", btcoex->btcoex_period);
ATH_DUMP_BTCOEX("Duty Cycle", btcoex->duty_cycle);
ATH_DUMP_BTCOEX("BT Wait time", btcoex->bt_wait_time);
- return len;
+ return 0;
}
int ath9k_dump_btcoex(struct ath_softc *sc, u8 *buf, u32 size)
--
2.17.1
Powered by blists - more mailing lists