lkml.org 
[lkml]   [2008]   [Sep]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 20/23] AMD IOMMU: remove unnecessary cast to u64 in the init code
    Date
    From: Joerg Roedel <jroedel@lemmy.amd.com>

    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>
    ---
    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 a307cf6..b876499 100644
    --- a/arch/x86/kernel/amd_iommu_init.c
    +++ b/arch/x86/kernel/amd_iommu_init.c
    @@ -236,7 +236,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);
    }
    --
    1.5.6.4



    \
     
     \ /
      Last update: 2008-09-17 18:59    [W:0.024 / U:0.048 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site