From: Namhyung Kim Date: Tue, 22 Mar 2011 23:33:02 +0000 (-0700) Subject: mempolicy: remove redundant check in __mpol_equal() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7571966189e54adf0a8bc1384d6f13f44052ba63;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git mempolicy: remove redundant check in __mpol_equal() The 'flags' field is already checked, no need to do it again. Signed-off-by: Namhyung Kim Cc: Bob Liu Cc: Lee Schermerhorn Reviewed-by: Minchan Kim Cc: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/mempolicy.c b/mm/mempolicy.c index 78062ab641ff..959a8b8c7350 100644 --- a/mm/mempolicy.c +++ b/mm/mempolicy.c @@ -1979,8 +1979,7 @@ int __mpol_equal(struct mempolicy *a, struct mempolicy *b) case MPOL_INTERLEAVE: return nodes_equal(a->v.nodes, b->v.nodes); case MPOL_PREFERRED: - return a->v.preferred_node == b->v.preferred_node && - a->flags == b->flags; + return a->v.preferred_node == b->v.preferred_node; default: BUG(); return 0;