Skip to content
Snippets Groups Projects
Commit 89374244 authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Joerg Roedel
Browse files

iommu/tegra-smmu: Use devm_bitmap_zalloc when applicable


'smmu->asids' is a bitmap. So use 'devm_kzalloc()' to simplify code,
improve the semantic of the code and avoid some open-coded arithmetic in
allocator arguments.

Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: default avatarThierry Reding <treding@nvidia.com>
Link: https://lore.kernel.org/r/2c0f4da80c3b5ef83299c651f69a563034c1c6cb.1632661557.git.christophe.jaillet@wanadoo.fr


Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
parent 5816b3e6
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment