Skip to contentSkip to conversation

iommu/vt-d: Remove unnecessary (void*) conversions

PATCH New Suhui 1 participant 1 message Apr 25, 2023

Subsystems (3)
lore
Share & tools
lore

Suhui

author
#0 lore raw

PATCH 1/1 iommu/vt-d: Remove unnecessary (void*) conversions

No need cast (void*) to (struct root_entry *).

---
 drivers/iommu/intel/iommu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iommu/intel/iommu.c +1 -1
index 7c2f4bd33582..c72cf46207a2 100644
@@ -1187,7 +1187,7 @@ static int iommu_alloc_root_entry(struct intel_iommu *iommu)
 {
 	struct root_entry *root;
 
-	root = (struct root_entry *)alloc_pgtable_page(iommu->node, GFP_ATOMIC);
+	root = alloc_pgtable_page(iommu->node, GFP_ATOMIC);
 	if (!root) {
 		pr_err("Allocating root entry for %s failed\n",
 			iommu->name);
Signature · 1 line
2.30.2