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

From: Lu Baolu
Date: Tue Jun 13 2023 - 22:49:07 EST


From: Suhui <suhui@xxxxxxxxxxxx>

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

Signed-off-by: Suhui <suhui@xxxxxxxxxxxx>
Link: https://lore.kernel.org/r/20230425033743.75986-1-suhui@xxxxxxxxxxxx
Signed-off-by: Lu Baolu <baolu.lu@xxxxxxxxxxxxxxx>
---
drivers/iommu/intel/iommu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/iommu/intel/iommu.c b/drivers/iommu/intel/iommu.c
index b871a6afd803..323fa1a93765 100644
--- a/drivers/iommu/intel/iommu.c
+++ b/drivers/iommu/intel/iommu.c
@@ -1185,7 +1185,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);
--
2.34.1