commit | cdf7b3418ad5a8783efe8f9124023d9b869fec0f | [log] [tgz] |
---|---|---|
author | Huang Shijie <shijie8@gmail.com> | Mon Sep 21 17:03:36 2009 -0700 |
committer | Linus Torvalds <torvalds@linux-foundation.org> | Tue Sep 22 07:17:41 2009 -0700 |
tree | 0504a26ba5d7cbbaa71bdd2911d55c6934de8be5 | |
parent | 03f6462a3ae78f36eb1f0ee8b4d5ae2f7859c1d5 [diff] |
mmap: remove unnecessary code If (flags & MAP_LOCKED) is true, it means vm_flags has already contained the bit VM_LOCKED which is set by calc_vm_flag_bits(). So there is no need to reset it again, just remove it. Signed-off-by: Huang Shijie <shijie8@gmail.com> Acked-by: Hugh Dickins <hugh.dickins@tiscali.co.uk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>