diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2021-11-21 20:12:54 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-11-22 14:30:57 +0000 |
commit | 5e6c7ccd3ea4b25dd6b4b0363859913f315deacb (patch) | |
tree | 9cd6b189dea63dc7e9cd1d9293f6cfa4acd7f879 /drivers/mailbox | |
parent | 08a7abf4aff1a42290fd20ff7a5fa8a3ff5f90e7 (diff) | |
download | linux-stable-5e6c7ccd3ea4b25dd6b4b0363859913f315deacb.tar.gz linux-stable-5e6c7ccd3ea4b25dd6b4b0363859913f315deacb.tar.bz2 linux-stable-5e6c7ccd3ea4b25dd6b4b0363859913f315deacb.zip |
qed: Use the bitmap API to simplify some functions
'cid_map' 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.
Also change some 'memset()' into 'bitmap_zero()' to keep consistency. This
is also much less verbose.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/mailbox')
0 files changed, 0 insertions, 0 deletions