Skip to content

Commit 82d9654

Browse files
Suhuijoergroedel
authored andcommitted
iommu/vt-d: Remove unnecessary (void*) conversions
No need cast (void*) to (struct root_entry *). Signed-off-by: Suhui <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lu Baolu <[email protected]> Signed-off-by: Joerg Roedel <[email protected]>
1 parent 44c026a commit 82d9654

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/iommu/intel/iommu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1185,7 +1185,7 @@ static int iommu_alloc_root_entry(struct intel_iommu *iommu)
11851185
{
11861186
struct root_entry *root;
11871187

1188-
root = (struct root_entry *)alloc_pgtable_page(iommu->node, GFP_ATOMIC);
1188+
root = alloc_pgtable_page(iommu->node, GFP_ATOMIC);
11891189
if (!root) {
11901190
pr_err("Allocating root entry for %s failed\n",
11911191
iommu->name);

0 commit comments

Comments
 (0)