projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ca65c1
)
mm/mmap.c: remove redundant statement "error = -ENOMEM"
author
Chen Gang
<xili_gchen_5257@hotmail.com>
Fri, 6 Nov 2015 02:48:32 +0000
(18:48 -0800)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Fri, 6 Nov 2015 03:34:48 +0000
(19:34 -0800)
It is still a little better to remove it, although it should be skipped
by "-O2".
Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>=0A=
Acked-by: Oleg Nesterov <oleg@redhat.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 3204a7e8243076b4975500b17081eb60ebaca138..28d1b3524d88f0f131430e14ef217ce8c755400c 100644
(file)
--- a/
mm/mmap.c
+++ b/
mm/mmap.c
@@
-1562,7
+1562,6
@@
unsigned long mmap_region(struct file *file, unsigned long addr,
}
/* Clear old maps */
- error = -ENOMEM;
while (find_vma_links(mm, addr, addr + len, &prev, &rb_link,
&rb_parent)) {
if (do_munmap(mm, addr, len))