diff --git a/arch/arm/mach-rk29/vpu_mem.c b/arch/arm/mach-rk29/vpu_mem.c index 03f59f110773..d70943e2e618 100644 --- a/arch/arm/mach-rk29/vpu_mem.c +++ b/arch/arm/mach-rk29/vpu_mem.c @@ -428,7 +428,7 @@ static long vpu_mem_allocate(struct file *file, unsigned int len) */ while (curr < vpu_mem.num_entries) { if (VPU_MEM_IS_FREE(curr)) { - if (VPU_MEM_PFN(curr) >= (unsigned char)pfn) { + if (VPU_MEM_PFN(curr) >= pfn) { /* set the not free bit and clear others */ best_fit = curr; #if VPU_MEM_DEBUG