diff options
author | Joerg Roedel <joerg.roedel@amd.com> | 2008-09-17 16:45:59 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-09-19 12:59:29 +0200 |
commit | 199d0d501202f077fe647a5c14fe046b17abc46b (patch) | |
tree | da98406b8b7c21a6165366f27f54e1407da5c31a /arch/x86 | |
parent | d58befd3a0110c93d70756537b4d01d05a9e6e12 (diff) | |
download | op-kernel-dev-199d0d501202f077fe647a5c14fe046b17abc46b.zip op-kernel-dev-199d0d501202f077fe647a5c14fe046b17abc46b.tar.gz |
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/x86')
-rw-r--r-- | arch/x86/kernel/amd_iommu_init.c | 2 |
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 e60f4cd..505fc04 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); } |