diff options
author | Chen Gang <xili_gchen_5257@hotmail.com> | 2015-11-06 02:48:32 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-11-06 03:34:48 (GMT) |
commit | e6ee219fdd69c87ceaeb421bcd753a63937f8f31 (patch) | |
tree | 7cecd90a11417a867288dd21b012ffab1e488a09 /mm/mmap.c | |
parent | 3ca65c19ddbb45f504edf92fe7126ecc94d56e36 (diff) | |
download | linux-e6ee219fdd69c87ceaeb421bcd753a63937f8f31.tar.xz |
mm/mmap.c: remove redundant statement "error = -ENOMEM"
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>
Diffstat (limited to 'mm/mmap.c')
-rw-r--r-- | mm/mmap.c | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -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)) |