summaryrefslogtreecommitdiff
path: root/include/linux/zstd_errors.h
diff options
context:
space:
mode:
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>2026-03-18 21:26:44 +0300
committerJakub Kicinski <kuba@kernel.org>2026-03-20 03:18:52 +0300
commite73b19baa3b1c8eb909d0990e32c8d596b52be53 (patch)
tree7bd3431562e15b9086babd23b5ad456d889fb1e8 /include/linux/zstd_errors.h
parent33be7846e4bebb44fb0c09ee92e99cdd111558fd (diff)
downloadlinux-e73b19baa3b1c8eb909d0990e32c8d596b52be53.tar.xz
net: stmmac: simplify DMA descriptor allocation/init/freeing
Rather than having separate branches to handle the different types of descriptors, use the helper functions to calculate the total size of the DMA descriptors. Use this to allocate or free the descriptor array, and use a local variable to hold the address of the descriptor array, so we only need one dma_alloc_coherent() or dma_free_coherent() call in these paths. Also do the same for the receive ring initialisation. The transmit ring can't be converted as there is a case where stmmac_mode_init() is not called. Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> Link: https://patch.msgid.link/E1w2vbQ-0000000DbWc-0ty5@rmk-PC.armlinux.org.uk Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux/zstd_errors.h')
0 files changed, 0 insertions, 0 deletions