atm: idt77252: Use sb_pool_remove()
Subsystems (3)
PATCH 1/1 atm: idt77252: Use sb_pool_remove()
Replacing the manual pool remove with the dedicated function.
Signed-off-by Thomas Fourier <[email protected]>
--- drivers/atm/idt77252.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/atm/idt77252.c +1 -3
@@ -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
Jakub Kicinski
maintainerQuoted 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