From 55e1ceaf2586ab11aafba798a6b9499dd7c14441 Mon Sep 17 00:00:00 2001 From: Chen Gang Date: Thu, 5 Nov 2015 18:46:06 -0800 Subject: mm/mmap.c: remove useless statement "vma = NULL" in find_vma() Before the main loop, vma is already is NULL. There is no need to set it to NULL again. Signed-off-by: Chen Gang Reviewed-by: Oleg Nesterov Acked-by: David Rientjes Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- mm/mmap.c | 1 - 1 file changed, 1 deletion(-) (limited to 'mm/mmap.c') diff --git a/mm/mmap.c b/mm/mmap.c index 79bcc9f92e48..bd932c1b130b 100644 --- a/mm/mmap.c +++ b/mm/mmap.c @@ -2047,7 +2047,6 @@ struct vm_area_struct *find_vma(struct mm_struct *mm, unsigned long addr) return vma; rb_node = mm->mm_rb.rb_node; - vma = NULL; while (rb_node) { struct vm_area_struct *tmp; -- cgit v1.2.3