OSDN Git Service

ubi: fastmap: Use the bitmap API to allocate bitmaps
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Mon, 4 Jul 2022 18:46:00 +0000 (20:46 +0200)
committerRichard Weinberger <richard@nod.at>
Wed, 21 Sep 2022 09:32:58 +0000 (11:32 +0200)
commite7f35da21f6f8c6a8c7d262dd4e4bd32e3083f79
tree4e4cc186c5de0e7b57fcba3798b8320ba5eb3cb0
parenta0c51565730729f0df2ee886e34b4da6d359a10b
ubi: fastmap: Use the bitmap API to allocate bitmaps

Use bitmap_zalloc()/bitmap_free() instead of hand-writing them.

It is less verbose and it improves the semantic.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Zhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
drivers/mtd/ubi/fastmap.c