diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2007-11-11 11:55:25 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2007-11-11 11:55:25 +0100 |
commit | 6d6a54d1e4c2c6fbccd128ab4e6c8817db124866 (patch) | |
tree | 41da7839eb01ba95114994ef32fbcbff6045a39e /arch/arm/mm/consistent.c | |
parent | x86 - 32-bit ptrace emulation mishandles 6th arg (diff) | |
download | linux-6d6a54d1e4c2c6fbccd128ab4e6c8817db124866.tar.xz linux-6d6a54d1e4c2c6fbccd128ab4e6c8817db124866.zip |
[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 <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mm/consistent.c')
-rw-r--r-- | arch/arm/mm/consistent.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/arm/mm/consistent.c b/arch/arm/mm/consistent.c index cefdf2f9f26e..333a82a3717e 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, |