projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ab32b6
)
mm/mmap.c: remove useless statement "vma = NULL" in find_vma()
author
Chen Gang
<gang.chen.5i5j@gmail.com>
Fri, 6 Nov 2015 02:46:06 +0000
(18:46 -0800)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
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 <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
patch
|
blob
|
blame
|
history
diff --git
a/mm/mmap.c
b/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;