From 6d6a54d1e4c2c6fbccd128ab4e6c8817db124866 Mon Sep 17 00:00:00 2001 From: Russell King Date: Sun, 11 Nov 2007 10:55:25 +0000 Subject: [PATCH] [ARM] remove useless setting of VM_RESERVED remap_pfn_range() takes care of setting the appropriate VM_* flags itself; there's no need for callers of remap_pfn_range() to set VM_RESERVED before it is called. Signed-off-by: Russell King --- arch/arm/mm/consistent.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/mm/consistent.c b/arch/arm/mm/consistent.c index cefdf2f9f26..333a82a3717 100644 --- a/arch/arm/mm/consistent.c +++ b/arch/arm/mm/consistent.c @@ -322,7 +322,6 @@ static int dma_mmap(struct device *dev, struct vm_area_struct *vma, if (off < kern_size && user_size <= (kern_size - off)) { - vma->vm_flags |= VM_RESERVED; ret = remap_pfn_range(vma, vma->vm_start, page_to_pfn(c->vm_pages) + off, user_size << PAGE_SHIFT,