Re: [PATCH] mtd: gen_probe: Use bitmap_zalloc() when applicable

From: Miquel Raynal
Date: Fri Dec 03 2021 - 08:37:33 EST


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@xxxxxxxxxx>

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/next, thanks.

Miquel