summaryrefslogtreecommitdiff
path: root/drivers/iommu/intel
diff options
context:
space:
mode:
authorSuhui <suhui@nfschina.com>2023-06-14 05:47:02 +0300
committerJoerg Roedel <jroedel@suse.de>2023-06-16 17:38:31 +0300
commit82d9654f92fd858d3b36c6f189dcfa850f2dfa29 (patch)
tree10dfb68bf00f66b372a7c608478e463855256652 /drivers/iommu/intel
parent44c026a73be8038f03dbdeef028b642880cf1511 (diff)
downloadlinux-82d9654f92fd858d3b36c6f189dcfa850f2dfa29.tar.xz
iommu/vt-d: Remove unnecessary (void*) conversions
No need cast (void*) to (struct root_entry *). Signed-off-by: Suhui <suhui@nfschina.com> Link: https://lore.kernel.org/r/20230425033743.75986-1-suhui@nfschina.com Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/intel')
-rw-r--r--drivers/iommu/intel/iommu.c2
1 files changed, 1 insertions, 1 deletions
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);