Skip to content

Commit

Permalink
[ARM] remove useless setting of VM_RESERVED
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Russell King authored and Russell King committed Nov 11, 2007
1 parent ecd744e commit 6d6a54d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion arch/arm/mm/consistent.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 6d6a54d

Please sign in to comment.