summaryrefslogtreecommitdiffstats
path: root/mm/shmem.c
diff options
context:
space:
mode:
authorHuang Shijie2009-09-22 02:03:36 +0200
committerLinus Torvalds2009-09-22 16:17:41 +0200
commitcdf7b3418ad5a8783efe8f9124023d9b869fec0f (patch)
tree0504a26ba5d7cbbaa71bdd2911d55c6934de8be5 /mm/shmem.c
parentmm: move highest_memmap_pfn (diff)
downloadkernel-qcow2-linux-cdf7b3418ad5a8783efe8f9124023d9b869fec0f.tar.gz
kernel-qcow2-linux-cdf7b3418ad5a8783efe8f9124023d9b869fec0f.tar.xz
kernel-qcow2-linux-cdf7b3418ad5a8783efe8f9124023d9b869fec0f.zip
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>
Diffstat (limited to 'mm/shmem.c')
0 files changed, 0 insertions, 0 deletions