* [PATCH] mm/mlock.c: drop unneeded initialization in munlock_vma_pages_range()
@ 2015-11-10 0:22 Alexey Klimov
2015-11-10 9:27 ` Vlastimil Babka
0 siblings, 1 reply; 2+ messages in thread
From: Alexey Klimov @ 2015-11-10 0:22 UTC (permalink / raw)
To: linux-kernel, linux-mm; +Cc: akpm, kirill.shutemov, klimov.linux, emunson
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, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] mm/mlock.c: drop unneeded initialization in munlock_vma_pages_range()
2015-11-10 0:22 [PATCH] mm/mlock.c: drop unneeded initialization in munlock_vma_pages_range() Alexey Klimov
@ 2015-11-10 9:27 ` Vlastimil Babka
0 siblings, 0 replies; 2+ messages in thread
From: Vlastimil Babka @ 2015-11-10 9:27 UTC (permalink / raw)
To: Alexey Klimov, linux-kernel, linux-mm; +Cc: akpm, kirill.shutemov, emunson
On 11/10/2015 01:22 AM, Alexey Klimov wrote:
> 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>
> ---
> 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;
>
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-11-10 9:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-10 0:22 [PATCH] mm/mlock.c: drop unneeded initialization in munlock_vma_pages_range() Alexey Klimov
2015-11-10 9:27 ` Vlastimil Babka
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).