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)
commit11364d61314eb97b12d6b6facb1ededada52fcc1
treec9a26e09cd58d1e389750edbdafb4e3886de7cd8
parent45f5d0176d8426cc1ab0bab84fbd8ef5c57526c6
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