[PATCH] wireless: ipw2200: Remove the unused function ipw_alive()

Jiapeng Chong posted 1 patch 3 years, 5 months ago
drivers/net/wireless/intel/ipw2x00/ipw2200.c | 14 --------------
1 file changed, 14 deletions(-)
[PATCH] wireless: ipw2200: Remove the unused function ipw_alive()
Posted by Jiapeng Chong 3 years, 5 months ago
The function ipw_alive() is defined in the ipw2200.c file, but not called
elsewhere, so delete this unused function.

drivers/net/wireless/intel/ipw2x00/ipw2200.c:3007:19: warning: unused function 'ipw_alive'.

Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2410
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
---
 drivers/net/wireless/intel/ipw2x00/ipw2200.c | 14 --------------
 1 file changed, 14 deletions(-)

diff --git a/drivers/net/wireless/intel/ipw2x00/ipw2200.c b/drivers/net/wireless/intel/ipw2x00/ipw2200.c
index 5b483de18c81..79d5c09757d4 100644
--- a/drivers/net/wireless/intel/ipw2x00/ipw2200.c
+++ b/drivers/net/wireless/intel/ipw2x00/ipw2200.c
@@ -2995,20 +2995,6 @@ static void ipw_remove_current_network(struct ipw_priv *priv)
 	spin_unlock_irqrestore(&priv->ieee->lock, flags);
 }
 
-/*
- * Check that card is still alive.
- * Reads debug register from domain0.
- * If card is present, pre-defined value should
- * be found there.
- *
- * @param priv
- * @return 1 if card is present, 0 otherwise
- */
-static inline int ipw_alive(struct ipw_priv *priv)
-{
-	return ipw_read32(priv, 0x90) == 0xd55555d5;
-}
-
 /* timeout in msec, attempted in 10-msec quanta */
 static int ipw_poll_bit(struct ipw_priv *priv, u32 addr, u32 mask,
 			       int timeout)
-- 
2.20.1.7.g153144c
Re: wifi: ipw2200: Remove the unused function ipw_alive()
Posted by Kalle Valo 3 years, 5 months ago
Jiapeng Chong <jiapeng.chong@linux.alibaba.com> wrote:

> The function ipw_alive() is defined in the ipw2200.c file, but not called
> elsewhere, so delete this unused function.
> 
> drivers/net/wireless/intel/ipw2x00/ipw2200.c:3007:19: warning: unused function 'ipw_alive'.
> 
> Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2410
> Reported-by: Abaci Robot <abaci@linux.alibaba.com>
> Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>

Patch applied to wireless-next.git, thanks.

7bb09fb8f577 wifi: ipw2200: Remove the unused function ipw_alive()

-- 
https://patchwork.kernel.org/project/linux-wireless/patch/20221017071746.118685-1-jiapeng.chong@linux.alibaba.com/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches