]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita4969a5ff6adaf8971b2260c1e3286fa7c22df66
tree4e4cc186c5de0e7b57fcba3798b8320ba5eb3cb0
parent2bf9c7e8097dd3b66b55aea104475e4471278e56
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