projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
44c026a
)
iommu/vt-d: Remove unnecessary (void*) conversions
author
Suhui
<suhui@nfschina.com>
Wed, 14 Jun 2023 02:47:02 +0000
(10:47 +0800)
committer
Joerg Roedel
<jroedel@suse.de>
Fri, 16 Jun 2023 14:38:31 +0000
(16:38 +0200)
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>
drivers/iommu/intel/iommu.c
patch
|
blob
|
history
diff --git
a/drivers/iommu/intel/iommu.c
b/drivers/iommu/intel/iommu.c
index
b871a6a
..
323fa1a
100644
(file)
--- 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);