]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
mm/mlock.c: drop unneeded initialization in munlock_vma_pages_range()
authorAlexey Klimov <klimov.linux@gmail.com>
Thu, 14 Jan 2016 23:18:24 +0000 (15:18 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 15 Jan 2016 00:00:49 +0000 (16:00 -0800)
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>
mm/mlock.c

index 339d9e0949b6d63a1b81af1e121c1858af77f472..9cb87cbc40715c72261189822aa43b3b30ecd284 100644 (file)
@@ -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;