Skip to contentSkip to conversation

atm: idt77252: Use sb_pool_remove()

PATCH Superseded Thomas Fourier 2 participants 2 messages Dec 29, 2025 – Jan 4

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 atm: idt77252: Use sb_pool_remove()

Replacing the manual pool remove with the dedicated function.

---
 drivers/atm/idt77252.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/atm/idt77252.c +1 -3
index f2e91b7d79f0..888695ccc2a7 100644
@@ -1844,7 +1844,6 @@ add_rx_skb(struct idt77252_dev *card, int queue,
 {
 	struct sk_buff *skb;
 	dma_addr_t paddr;
-	u32 handle;
 
 	while (count--) {
 		skb = dev_alloc_skb(size);
@@ -1876,8 +1875,7 @@ add_rx_skb(struct idt77252_dev *card, int queue,
 			 skb_end_pointer(skb) - skb->data, DMA_FROM_DEVICE);
 
 outpoolrm:
-	handle = IDT77252_PRV_POOL(skb);
-	card->sbpool[POOL_QUEUE(handle)].skb[POOL_INDEX(handle)] = NULL;
+	sb_pool_remove(card, skb);
 
 outfree:
 	dev_kfree_skb(skb);
Signature · 1 line
2.43.0
maintainer
#1 lore raw
Quoted 3 lines · On Mon, 29 Dec 2025 12:42:01 +0100 Thomas Fourier wrote:

Subject: [PATCH net] atm: idt77252: Use sb_pool_remove()

Replacing the manual pool remove with the dedicated function.

You need to explain the motivation for the patch.
If this is a pure code cleanup it may be not worth it as ATM is on its deathbed, anyway.
Otherwise:
If this is a fix please add a Fixes tag
If this is not a fix please use net-next rather than net as subject tag.

Signature · 1 line
pw-bot: cr