diff options
author | Chen Gang <[email protected]> | 2015-11-05 18:48:32 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2015-11-05 19:34:48 -0800 |
commit | e6ee219fdd69c87ceaeb421bcd753a63937f8f31 (patch) | |
tree | 7cecd90a11417a867288dd21b012ffab1e488a09 | |
parent | 3ca65c19ddbb45f504edf92fe7126ecc94d56e36 (diff) |
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 <[email protected]>=0A=
Acked-by: Oleg Nesterov <[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 3204a7e82430..28d1b3524d88 100644 --- 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)) |