Commit 7571966189e54adf0a8bc1384d6f13f44052ba63

Authored by Namhyung Kim
Committed by Linus Torvalds
1 parent 4031a219d8

mempolicy: remove redundant check in __mpol_equal()

The 'flags' field is already checked, no need to do it again.

Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Cc: Bob Liu <lliubbo@gmail.com>
Cc: Lee Schermerhorn <lee.schermerhorn@hp.com>
Reviewed-by: Minchan Kim <minchan.kim@gmail.com>
Cc: Andi Kleen <andi@firstfloor.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Showing 1 changed file with 1 additions and 2 deletions Side-by-side Diff

... ... @@ -1979,8 +1979,7 @@
1979 1979 case MPOL_INTERLEAVE:
1980 1980 return nodes_equal(a->v.nodes, b->v.nodes);
1981 1981 case MPOL_PREFERRED:
1982   - return a->v.preferred_node == b->v.preferred_node &&
1983   - a->flags == b->flags;
  1982 + return a->v.preferred_node == b->v.preferred_node;
1984 1983 default:
1985 1984 BUG();
1986 1985 return 0;