[PATCH] mtd: gen_probe: Use bitmap_zalloc() when applicable
Miquel Raynal
miquel.raynal at bootlin.com
Fri Dec 3 05:37:25 PST 2021
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 at wanadoo.fr>
Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/next, thanks.
Miquel
More information about the linux-mtd
mailing list