Skip to content

Commit

Permalink
mm/mlock.c: drop unneeded initialization in munlock_vma_pages_range()
Browse files Browse the repository at this point in the history
Before usage page pointer initialized by NULL is reinitialized by
follow_page_mask().  Drop useless init of page pointer in the beginning
of loop.

Signed-off-by: Alexey Klimov <klimov.linux@gmail.com>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Alexey Klimov authored and Linus Torvalds committed Jan 15, 2016
1 parent 5d09705 commit ab7a5af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/mlock.c
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ void munlock_vma_pages_range(struct vm_area_struct *vma,
vma->vm_flags &= VM_LOCKED_CLEAR_MASK;

while (start < end) {
struct page *page = NULL;
struct page *page;
unsigned int page_mask;
unsigned long page_increm;
struct pagevec pvec;
Expand Down

0 comments on commit ab7a5af

Please sign in to comment.