PCI: xgene-msi: Use bitmap_zalloc() when applicable
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 23 Oct 2021 20:02:05 +0000 (22:02 +0200)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Mon, 29 Nov 2021 17:29:15 +0000 (17:29 +0000)
commit1ed9b961be1492e2acc0ce5113936ab08e379de7
treec45cfb019cc5f975ad841a76a3101c0e82f6a147
parentfa55b7dcdc43c1aa1ba12bca9d2dd4318c2a0dbf
PCI: xgene-msi: Use bitmap_zalloc() when applicable

'xgene_msi->bitmap' is a bitmap. So 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/32f3bc1fbfbd6ee0815e565012904758ca9eff7e.1635019243.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Krzysztof WilczyƄski <kw@linux.com>
drivers/pci/controller/pci-xgene-msi.c