mempolicy: remove redundant check in __mpol_equal()
Subsystems (2)
PATCH 1/1 mempolicy: remove redundant check in __mpol_equal()
The 'flags' field is already checked, no need to do it again.
Signed-off-by Namhyung Kim <[email protected]>
Cc Bob Liu <[email protected]>
Cc Lee Schermerhorn <[email protected]>
--- mm/mempolicy.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
mm/mempolicy.c +1 -2
@@ -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 ;
Signature · 8 lines
1.7.4 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 5 lines · Namhyung Kim
The 'flags' field is already checked, no need to do it again.
Signed-off-by Namhyung Kim <[email protected]>Cc Bob Liu <[email protected]>Cc Lee Schermerhorn <[email protected]>
Reviewed-by Minchan Kim <[email protected]>
Bob's mempolicy: remove redundant check(1980050250) made it redundant. Good eye!
Signature · 2 lines
Kind regards, Minchan Kim