]> git.baikalelectronics.ru Git - kernel.git/commit
mm/mmap.c: remove useless statement "vma = NULL" in find_vma()
authorChen Gang <gang.chen.5i5j@gmail.com>
Fri, 6 Nov 2015 02:46:06 +0000 (18:46 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 6 Nov 2015 03:34:48 +0000 (19:34 -0800)
commitb31a447c8e2b6629174c46cfbf0b087330aca1b7
tree1f49da0a136cbf3406be4c49f795872c66511473
parentf571613397b9b8fe1f6c4108dee0d95253eba0d2
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 <gang.chen.5i5j@gmail.com>
Reviewed-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/mmap.c