diff options
author | Chen Gang <[email protected]> | 2015-11-05 18:46:06 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2015-11-05 19:34:48 -0800 |
commit | 55e1ceaf2586ab11aafba798a6b9499dd7c14441 (patch) | |
tree | 1f49da0a136cbf3406be4c49f795872c66511473 | |
parent | 0ab32b6f1b88444524e52429fab334ff96683a3f (diff) |
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 <[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]>
-rw-r--r-- | mm/mmap.c | 1 |
1 files changed, 0 insertions, 1 deletions
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; |