diff options
| author | Thomas Fourier <fourier.thomas@gmail.com> | 2026-01-05 22:29:15 +0100 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-01-06 18:04:59 -0800 |
| commit | 8e7148b5602321be48614bcde048cbe1c738ce3e (patch) | |
| tree | 1b8231f7d5ae776197dda270469b7aa49a054805 /drivers/atm | |
| parent | 3b7a108c4197f9fd0b593c6b4b0de457d9ed4c87 (diff) | |
| download | linux-next-8e7148b5602321be48614bcde048cbe1c738ce3e.tar.gz linux-next-8e7148b5602321be48614bcde048cbe1c738ce3e.zip | |
atm: idt77252: Use sb_pool_remove()
Replacing the manual pool remove with the dedicated function. This is
safer and more consistent with the rest of the code[1].
[1]; https://lore.kernel.org/all/20250625094013.GL1562@horms.kernel.org/
Signed-off-by: Thomas Fourier <fourier.thomas@gmail.com>
Link: https://patch.msgid.link/20260105212916.26678-2-fourier.thomas@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/atm')
| -rw-r--r-- | drivers/atm/idt77252.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/atm/idt77252.c b/drivers/atm/idt77252.c index f2e91b7d79f0..888695ccc2a7 100644 --- a/drivers/atm/idt77252.c +++ b/drivers/atm/idt77252.c @@ -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 @@ outunmap: 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); |
