mm/mmap.c: remove useless statement "vma = NULL" in find_vma()
authorChen Gang <[email protected]>
Fri, 6 Nov 2015 02:46:06 +0000 (18:46 -0800)
committerLinus Torvalds <[email protected]>
Fri, 6 Nov 2015 03:34:48 +0000 (19:34 -0800)
Before the main loop, vma is already is NULL.  There is no need to set it
to NULL again.

Signed-off-by: Chen Gang <[email protected]>
Reviewed-by: Oleg Nesterov <[email protected]>
Acked-by: David Rientjes <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/mmap.c

index 79bcc9f92e482de9047c3927e068ff392db5c1bc..bd932c1b130b37be9aeb101bfe3f3406847fc220 100644 (file)
--- 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;