]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
mm/mempolicy.c: use match_string() helper to simplify the code
authorzhong jiang <zhongjiang@huawei.com>
Fri, 26 Oct 2018 22:06:57 +0000 (15:06 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
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/1536988365-50310-1-git-send-email-zhongjiang@huawei.com
Signed-off-by: zhong jiang <zhongjiang@huawei.com>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Acked-by: Michal Hocko <mhocko@suse.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: Andrey Ryabinin <aryabinin@virtuozzo.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/mempolicy.c