summaryrefslogtreecommitdiffstats
path: root/drivers/dma/pl330.c
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2022-07-30 22:07:45 +0200
committerVinod Koul <vkoul@kernel.org>2022-09-05 11:52:28 +0530
commit8c79fd35e1e793361ed30eaa79b3c5752e6c69fb (patch)
tree6e8fc6696e3475cb1174c57cef20a5fa7504d6bc /drivers/dma/pl330.c
parente1c9832b0964327399d43dc481a8c85285b23ad5 (diff)
downloadlinux-stable-8c79fd35e1e793361ed30eaa79b3c5752e6c69fb.tar.gz
linux-stable-8c79fd35e1e793361ed30eaa79b3c5752e6c69fb.tar.bz2
linux-stable-8c79fd35e1e793361ed30eaa79b3c5752e6c69fb.zip
dmaengine: stm32-dmamux: Simplify code and save a few bytes of memory
STM32_DMAMUX_MAX_DMA_REQUESTS is small (i.e. 32) and when the 'dma_inuse' bitmap is allocated, there is already a check that 'dma_req' is <= this limit. So, there is no good reason to dynamically allocate this bitmap. This just waste some memory and some cycles. Use DECLARE_BITMAP with the maximum bitmap size instead. Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Link: https://lore.kernel.org/r/2d8c24359b2daa32ce0597a2949b7b2bebaf23de.1659211633.git.christophe.jaillet@wanadoo.fr Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/dma/pl330.c')
0 files changed, 0 insertions, 0 deletions