mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-02-20 15:26:48 +07:00
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>
This commit is contained in:
parent
4031a219d8
commit
7571966189
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user