aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorJoerg Roedel <joerg.roedel@amd.com>2008-09-17 10:45:59 -0400
committerIngo Molnar <mingo@elte.hu>2008-09-19 06:59:29 -0400
commit199d0d501202f077fe647a5c14fe046b17abc46b (patch)
treeda98406b8b7c21a6165366f27f54e1407da5c31a /arch
parentd58befd3a0110c93d70756537b4d01d05a9e6e12 (diff)
AMD IOMMU: remove unnecessary cast to u64 in the init code
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>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/kernel/amd_iommu_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/amd_iommu_init.c b/arch/x86/kernel/amd_iommu_init.c
index e60f4cd29eb2..505fc04e8969 100644
--- 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)
235{ 235{
236 u32 ctrl; 236 u32 ctrl;
237 237
238 ctrl = (u64)readl(iommu->mmio_base + MMIO_CONTROL_OFFSET); 238 ctrl = readl(iommu->mmio_base + MMIO_CONTROL_OFFSET);
239 ctrl &= ~(1 << bit); 239 ctrl &= ~(1 << bit);
240 writel(ctrl, iommu->mmio_base + MMIO_CONTROL_OFFSET); 240 writel(ctrl, iommu->mmio_base + MMIO_CONTROL_OFFSET);
241} 241}