Commit bb71257
iommu/vt-d: Use bitmap_zalloc() when applicable
'iommu->domain_ids' is a bitmap. So use 'bitmap_zalloc()' to simplify code
and improve the semantic.
Also change the corresponding 'kfree()' into 'bitmap_free()' to keep
consistency.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/cb7a3e0a8d522447a06298a4f244c3df072f948b.1635018498.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Link: https://lore.kernel.org/r/20211217083817.1745419-2-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>1 parent 9dfa5b6 commit bb71257
1 file changed
Lines changed: 4 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1878 | 1878 | | |
1879 | 1879 | | |
1880 | 1880 | | |
1881 | | - | |
| 1881 | + | |
1882 | 1882 | | |
1883 | 1883 | | |
1884 | 1884 | | |
1885 | 1885 | | |
1886 | 1886 | | |
1887 | | - | |
1888 | 1887 | | |
1889 | 1888 | | |
1890 | 1889 | | |
1891 | | - | |
| 1890 | + | |
1892 | 1891 | | |
1893 | 1892 | | |
1894 | 1893 | | |
| |||
1903 | 1902 | | |
1904 | 1903 | | |
1905 | 1904 | | |
1906 | | - | |
| 1905 | + | |
1907 | 1906 | | |
1908 | 1907 | | |
1909 | 1908 | | |
| |||
1964 | 1963 | | |
1965 | 1964 | | |
1966 | 1965 | | |
1967 | | - | |
| 1966 | + | |
1968 | 1967 | | |
1969 | 1968 | | |
1970 | 1969 | | |
| |||
0 commit comments