rk29: vpu_mem : fix bug on region_allocate
author陈恒明 <chm@rockchip.com>
Tue, 25 Jan 2011 09:45:47 +0000 (01:45 -0800)
committer陈恒明 <chm@rockchip.com>
Tue, 25 Jan 2011 09:45:47 +0000 (01:45 -0800)
arch/arm/mach-rk29/vpu_mem.c

index 03f59f11077354fd8dd43241e924e3bf0991a88c..d70943e2e618d2446167a9da4fb57aa5eff59f88 100644 (file)
@@ -428,7 +428,7 @@ static long vpu_mem_allocate(struct file *file, unsigned int len)
         */\r
        while (curr < vpu_mem.num_entries) {\r
                if (VPU_MEM_IS_FREE(curr)) {\r
-                       if (VPU_MEM_PFN(curr) >= (unsigned char)pfn) {\r
+                       if (VPU_MEM_PFN(curr) >= pfn) {\r
                                /* set the not free bit and clear others */\r
                                best_fit = curr;\r
 #if VPU_MEM_DEBUG\r