From: Chen Gang Date: Fri, 6 Nov 2015 02:46:06 +0000 (-0800) Subject: mm/mmap.c: remove useless statement "vma = NULL" in find_vma() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=55e1ceaf2586ab11aafba798a6b9499dd7c14441;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git 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 --- 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;