scsi: elx: Use 'bitmap_zalloc()' when applicable
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 24 Oct 2021 19:48:09 +0000 (21:48 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 27 Oct 2021 03:28:33 +0000 (23:28 -0400)
commit2c2934c80e139ad4528fda2197c17938249e8eff
tree1cb03bfb42a7c43e3646270aa42eabf13abc096f
parent1ea7d8026300f72344bb574a12667f9543f73348
scsi: elx: Use 'bitmap_zalloc()' when applicable

'sli4->ext[i].use_map' is a bitmap. 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.

Link: https://lore.kernel.org/r/2a0a83949fb896a0a236dcca94dfdc8486d489f5.1635104793.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/elx/libefc_sli/sli4.c