]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: hisilicon/zip - Use the bitmap API to allocate bitmaps
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Thu, 21 Jul 2022 20:58:53 +0000 (22:58 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 29 Jul 2022 10:29:17 +0000 (18:29 +0800)
commitc9950b6c8a3976e9863e213c2f9323658d2f55e9
treec9a26e09cd58d1e389750edbdafb4e3886de7cd8
parent28fdbe40432d12ea1f011f089c4360614290e82a
crypto: hisilicon/zip - 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.

While at it, add an explicit include <linux/bitmap.h>.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/zip/zip_crypto.c