Skip to contentSkip to conversation

b43legacy: Remove the unused function prev_slot()

PATCH In review Jiapeng Chong 4 participants 4 messages Mar 30, 2023 – Apr 3, 2023

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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
index 6869f2bf1bae..60e41de72f29 100644
@@ -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
Acked-by on v1 1/1
#2 lore raw
In reply to Jiapeng Chong
Quoted 11 lines · Jiapeng Chong

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(-)

Thanks,

Larry

_______________________________________________
b43-dev mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/b43-dev

#3 lore raw

Re: wifi: b43legacy: Remove the unused function prev_slot()

In reply to Jiapeng Chong
Quoted 10 lines · Jiapeng Chong

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'.

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