[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>
This commit is contained in:
parent
ecd744eec3
commit
6d6a54d1e4
1 changed files with 0 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue