From bf59e00829ac65be709d600ba3a4ea892f348494 Mon Sep 17 00:00:00 2001 From: zsq Date: Sun, 30 Dec 2012 14:35:32 +0800 Subject: [PATCH] remove VM_PFNMAP jump condition --- drivers/video/rockchip/rga/rga_mmu_info.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/video/rockchip/rga/rga_mmu_info.c b/drivers/video/rockchip/rga/rga_mmu_info.c index 8a1f5fd67ee2..4ba0cb816541 100755 --- a/drivers/video/rockchip/rga/rga_mmu_info.c +++ b/drivers/video/rockchip/rga/rga_mmu_info.c @@ -246,6 +246,7 @@ static int rga_MapUserMemory(struct page **pages, uint32_t status; uint32_t Address; uint32_t temp; + status = 0; Address = 0; @@ -292,7 +293,7 @@ static int rga_MapUserMemory(struct page **pages, { vma = find_vma(current->mm, (Memory + i) << PAGE_SHIFT); - if (vma && (vma->vm_flags & VM_PFNMAP) ) + if (vma)//&& (vma->vm_flags & VM_PFNMAP) ) { do { @@ -347,7 +348,7 @@ static int rga_MapUserMemory(struct page **pages, } } - return 0; + return status; } #endif -- 2.34.1