From: Huang Shijie Date: Tue, 22 Sep 2009 00:03:36 +0000 (-0700) Subject: mmap: remove unnecessary code X-Git-Tag: v2.6.32-rc1~483 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cdf7b3418ad5a8783efe8f9124023d9b869fec0f;p=pandora-kernel.git 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 Acked-by: Hugh Dickins Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed