b43legacy: Remove the unused function prev_slot()
Subsystems (3)
PATCH 1/1 b43legacy: Remove the unused function prev_slot()
The function prev_slot is defined in the dma.c file, but not called elsewhere, so remove this unused function.
drivers/net/wireless/broadcom/b43legacy/dma.c:130:19: warning: unused function 'prev_slot'.
--- drivers/net/wireless/broadcom/b43legacy/dma.c | 8 -------- 1 file changed, 8 deletions(-)
drivers/net/wireless/broadcom/b43legacy/dma.c +0 -8
@@ -127,14 +127,6 @@ static inline int next_slot(struct b43legacy_dmaring *ring, int slot)return slot +1 ; } -static inline int prev_slot (struct b43legacy_dmaring *ring,int slot) -{ -B43legacy_WARN_ON (!(slot >=0 && slot <= ring->nr_slots -1 )); -if (slot ==0 ) -return ring->nr_slots -1 ; -return slot -1 ; -} -#ifdef CONFIG_B43LEGACY_DEBUG static void update_max_used_slots (struct b43legacy_dmaring *ring,int current_used_slots)
Signature · 1 line
2.20.1.7.g153144c
Quoted 8 lines · Jiapeng Chong
The function
prev_slotis defined in thedma.cfile, but not called elsewhere, so remove this unused function.
drivers/net/wireless/broadcom/b43legacy/dma.c:130:19: warning: unused function 'prev_slot'.Reported-by Abaci Robot <[email protected]>Signed-off-by Jiapeng Chong <[email protected]>
Quoted 11 lines · Jiapeng Chong
The function
prev_slotis defined in thedma.cfile, but not called elsewhere, so remove this unused function.
drivers/net/wireless/broadcom/b43legacy/dma.c:130:19: warning: unused function 'prev_slot'.Reported-by Abaci Robot <[email protected]>Signed-off-by Jiapeng Chong <[email protected]>--- drivers/net/wireless/broadcom/b43legacy/dma.c | 8 -------- 1 file changed, 8 deletions(-)
Thanks,
Larry
_______________________________________________
b43-dev mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/b43-dev
Re: wifi: b43legacy: Remove the unused function prev_slot()
In reply to Jiapeng ChongQuoted 10 lines · Jiapeng Chong
The function
prev_slotis defined in thedma.cfile, but not called elsewhere, so remove this unused function.
drivers/net/wireless/broadcom/b43legacy/dma.c:130:19: warning: unused function 'prev_slot'.Reported-by Abaci Robot <[email protected]>Signed-off-by Jiapeng Chong <[email protected]>Reviewed-by Simon Horman <[email protected]>Acked-by Larry Finger <[email protected]>
Patch applied to wireless-next.git, thanks.
e83ce86aa7d9 wifi: b43legacy: Remove the unused function prev_slot()
Signature · 3 lines
https://patchwork.kernel.org/project/linux-wireless/patch/[email protected]/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches