diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2007-11-11 10:55:25 +0000 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2007-11-11 10:55:25 +0000 |
commit | 6d6a54d1e4c2c6fbccd128ab4e6c8817db124866 (patch) | |
tree | 41da7839eb01ba95114994ef32fbcbff6045a39e /arch | |
parent | ecd744eec3aa8bbc949ec04ed3fbf7ecb2958a0e (diff) | |
download | kernel-crypto-6d6a54d1e4c2c6fbccd128ab4e6c8817db124866.tar.gz kernel-crypto-6d6a54d1e4c2c6fbccd128ab4e6c8817db124866.tar.xz kernel-crypto-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')
-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 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, |