Messages in this thread | | | From | Miquel Raynal <> | Subject | Re: [PATCH] mtd: gen_probe: Use bitmap_zalloc() when applicable | Date | Fri, 3 Dec 2021 14:37:25 +0100 |
| |
On Sun, 2021-11-21 at 15:59:12 UTC, Christophe JAILLET wrote: > 'chip_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. > > Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/next, thanks.
Miquel
| |