mm/mempolicy.c: use match_string() helper to simplify the code
authorzhong jiang <[email protected]>
Fri, 26 Oct 2018 22:06:57 +0000 (15:06 -0700)
committerLinus Torvalds <[email protected]>
Fri, 26 Oct 2018 23:26:33 +0000 (16:26 -0700)
commitdedf2c73b80b4566dfcae8ebe9ed46a38b63a1f9
tree1f6c11fcbe8fbde13cf579a23a82f30fd95caf2b
parentc3df29d13044d885695067fa0b1386824942557a
mm/mempolicy.c: use match_string() helper to simplify the code

match_string() returns the index of an array for a matching string, which
can be used intead of open coded implementation.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: zhong jiang <[email protected]>
Reviewed-by: Andrew Morton <[email protected]>
Acked-by: Michal Hocko <[email protected]>
Cc: Vlastimil Babka <[email protected]>
Cc: Andrey Ryabinin <[email protected]>
Cc: Andrea Arcangeli <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/mempolicy.c