diff options
author | Alexey Klimov <klimov.linux@gmail.com> | 2016-01-14 15:18:24 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-01-14 16:00:49 -0800 |
commit | ab7a5af7fd9cc38576b432690367bbabc8da99b2 (patch) | |
tree | e968793b9f7fb3ba15de80a69e9e7037873c4a97 /mm/mlock.c | |
parent | 5d097056c9a017a3b720849efb5432f37acabbac (diff) | |
download | linux-ab7a5af7fd9cc38576b432690367bbabc8da99b2.tar.gz linux-ab7a5af7fd9cc38576b432690367bbabc8da99b2.tar.bz2 linux-ab7a5af7fd9cc38576b432690367bbabc8da99b2.zip |
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>
Diffstat (limited to 'mm/mlock.c')
-rw-r--r-- | mm/mlock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/mlock.c b/mm/mlock.c index 339d9e0949b6..9cb87cbc4071 100644 --- a/mm/mlock.c +++ b/mm/mlock.c @@ -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; |