mirror of
https://github.com/torvalds/linux.git
synced 2024-11-26 06:02:05 +00:00
mm/mlock.c: drop unneeded initialization in munlock_vma_pages_range()
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>
This commit is contained in:
parent
5d097056c9
commit
ab7a5af7fd
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user