linux/drivers/scsi/elx/libefc_sli
Christophe JAILLET 2c2934c80e 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>
2021-10-26 23:28:33 -04:00
..
sli4.c scsi: elx: Use 'bitmap_zalloc()' when applicable 2021-10-26 23:28:33 -04:00
sli4.h scsi: elx: libefc_sli: APIs to setup SLI library 2021-06-15 23:39:29 -04:00