summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoerg Roedel <joerg.roedel@amd.com>2008-09-17 16:45:59 +0200
committerIngo Molnar <mingo@elte.hu>2008-09-19 12:59:29 +0200
commit199d0d501202f077fe647a5c14fe046b17abc46b (patch)
treeda98406b8b7c21a6165366f27f54e1407da5c31a
parentd58befd3a0110c93d70756537b4d01d05a9e6e12 (diff)
downloadblackbird-op-linux-199d0d501202f077fe647a5c14fe046b17abc46b.tar.gz
blackbird-op-linux-199d0d501202f077fe647a5c14fe046b17abc46b.zip
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>
-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)
{
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);
}
OpenPOWER on IntegriCloud