Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

wifi: ipw2200: Remove the unused function ipw_alive()

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>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20221017071746.118685-1-jiapeng.chong@linux.alibaba.com

authored by

Jiapeng Chong and committed by
Kalle Valo
7bb09fb8 8fa68170

-14
-14
drivers/net/wireless/intel/ipw2x00/ipw2200.c
··· 2995 2995 spin_unlock_irqrestore(&priv->ieee->lock, flags); 2996 2996 } 2997 2997 2998 - /* 2999 - * Check that card is still alive. 3000 - * Reads debug register from domain0. 3001 - * If card is present, pre-defined value should 3002 - * be found there. 3003 - * 3004 - * @param priv 3005 - * @return 1 if card is present, 0 otherwise 3006 - */ 3007 - static inline int ipw_alive(struct ipw_priv *priv) 3008 - { 3009 - return ipw_read32(priv, 0x90) == 0xd55555d5; 3010 - } 3011 - 3012 2998 /* timeout in msec, attempted in 10-msec quanta */ 3013 2999 static int ipw_poll_bit(struct ipw_priv *priv, u32 addr, u32 mask, 3014 3000 int timeout)