projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d58befd
)
AMD IOMMU: remove unnecessary cast to u64 in the init code
author
Joerg Roedel
<joerg.roedel@amd.com>
Wed, 17 Sep 2008 14:45:59 +0000
(16:45 +0200)
committer
Ingo Molnar
<mingo@elte.hu>
Fri, 19 Sep 2008 10:59:29 +0000
(12:59 +0200)
The ctrl variable is only u32 and readl also returns a 32 bit value. So
the cast to u64 is pointless. Remove it with this patch.
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/amd_iommu_init.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/kernel/amd_iommu_init.c
b/arch/x86/kernel/amd_iommu_init.c
index e60f4cd29eb25a7e717d236ccb08263eda72671a..505fc04e896900bbcc0b068e7b3a027416212cfc 100644
(file)
--- a/
arch/x86/kernel/amd_iommu_init.c
+++ b/
arch/x86/kernel/amd_iommu_init.c
@@
-235,7
+235,7
@@
static void __init iommu_feature_disable(struct amd_iommu *iommu, u8 bit)
{
u32 ctrl;
- ctrl =
(u64)
readl(iommu->mmio_base + MMIO_CONTROL_OFFSET);
+ ctrl = readl(iommu->mmio_base + MMIO_CONTROL_OFFSET);
ctrl &= ~(1 << bit);
writel(ctrl, iommu->mmio_base + MMIO_CONTROL_OFFSET);
}