diff options
| author | 2022-07-30 22:07:45 +0200 | |
|---|---|---|
| committer | 2022-09-05 11:52:28 +0530 | |
| commit | 8c79fd35e1e793361ed30eaa79b3c5752e6c69fb (patch) | |
| tree | 6e8fc6696e3475cb1174c57cef20a5fa7504d6bc /tools/include/trace/git:/ssh:/git@git.zx2c4.com | |
| parent | dmaengine: stm32-dmamux: Fix comment typo (diff) | |
| download | linux-dev-8c79fd35e1e793361ed30eaa79b3c5752e6c69fb.tar.xz linux-dev-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 'tools/include/trace/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
