diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2021-10-24 19:40:23 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2021-10-27 08:20:09 +0200 |
commit | 9fbd8dc19aa57ec8fe92606043199919527cd9be (patch) | |
tree | 0be05b49287ea696ecbb850bfc19d2036f15a1cf /arch | |
parent | 7d6db80b7d264d6af9dc21baafe59f93cc4607c5 (diff) | |
download | linux-stable-9fbd8dc19aa57ec8fe92606043199919527cd9be.tar.gz linux-stable-9fbd8dc19aa57ec8fe92606043199919527cd9be.tar.bz2 linux-stable-9fbd8dc19aa57ec8fe92606043199919527cd9be.zip |
dma-mapping: use 'bitmap_zalloc()' when applicable
'dma_mem->bitmap' 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.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions