summaryrefslogtreecommitdiffstats
path: root/init/do_mounts_rd.c
diff options
context:
space:
mode:
authorBob Liu <lliubbo@gmail.com>2010-05-24 23:31:59 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2010-05-25 17:06:57 +0200
commit6d556294d5b27fb12f18be7495af45b6156a409e (patch)
treecb8549b4a4dc53399abc596dcac4630b0d936abf /init/do_mounts_rd.c
parentmm: remove return value of putback_lru_pages() (diff)
downloadlinux-6d556294d5b27fb12f18be7495af45b6156a409e.tar.xz
linux-6d556294d5b27fb12f18be7495af45b6156a409e.zip
mempolicy: remove redundant code
1. In funtion is_valid_nodemask(), varibable k will be inited to 0 in the following loop, needn't init to policy_zone anymore. 2. (MPOL_F_STATIC_NODES | MPOL_F_RELATIVE_NODES) has already defined to MPOL_MODE_FLAGS in mempolicy.h. Signed-off-by: Bob Liu <lliubbo@gmail.com> Acked-by: David Rientjes <rientjes@google.com> Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> Cc: Christoph Lameter <cl@linux-foundation.org> Cc: Mel Gorman <mel@csn.ul.ie> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'init/do_mounts_rd.c')
0 files changed, 0 insertions, 0 deletions