Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1266115
| From | Alexey Klimov <klimov.linux@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] mm/mlock.c: drop unneeded initialization in munlock_vma_pages_range() |
| Date | 2015-11-10 01:30 +0100 |
| Message-ID | <qt4YW-65g-15@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
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>
---
mm/mlock.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/mlock.c b/mm/mlock.c
index 339d9e0..9cb87cb 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;
--
2.5.0
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH] mm/mlock.c: drop unneeded initialization in munlock_vma_pages_range() Alexey Klimov <klimov.linux@gmail.com> - 2015-11-10 01:30 +0100 Re: [PATCH] mm/mlock.c: drop unneeded initialization in munlock_vma_pages_range() Vlastimil Babka <vbabka@suse.cz> - 2015-11-10 10:30 +0100
csiph-web