]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/xmon: use match_string() helper
authorYisheng Xie <xieyisheng1@huawei.com>
Thu, 31 May 2018 11:11:25 +0000 (19:11 +0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 3 Jun 2018 10:40:24 +0000 (20:40 +1000)
commit16ba591049cff1dc501d645bff6384ca3bf3189e
tree1d28c07d8b4ed9f2fa15d6d44cb5b250d0fcef58
parent222f60b81f7a97d5732b6698c4e373ca6c768ff1
powerpc/xmon: use match_string() helper

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

Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: linuxppc-dev@lists.ozlabs.org
Signed-off-by: Yisheng Xie <xieyisheng1@huawei.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/xmon/xmon.c