Re: [PATCH] dmaengine: sh: Use bitmap_zalloc() when applicable

From
Vinod Koul <vkoul@kernel.org>
Date
2021-12-13 09:23:00
Also in
kernel-janitors, lkml
Reply to
Christophe JAILLET, 2021-11-23
On 23-11-21, 22:26, Christophe JAILLET wrote:
'shdma_slave_used' is a bitmap. So use 'bitmap_zalloc()' to simplify code,
improve the semantic and avoid some open-coded arithmetic in allocator
arguments.

Also change the corresponding 'kfree()' into 'bitmap_free()' to keep
consistency.
Applied, thanks

-- 
~Vinod
Thread (2 messages) 2 messages, 2 authors, last reply 2021-12-13
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help