s390/vdso: reuse kstrtobool for option value parsing
authorVasily Gorbik <gor@linux.ibm.com>
Mon, 19 Aug 2019 15:41:17 +0000 (17:41 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Mon, 26 Aug 2019 10:51:17 +0000 (12:51 +0200)
commit3d644364533931df298dc4f026a74731c2f752cb
tree48c93f774d7163571db5eb6a8c87677c38695a92
parent227f52a43a2fa0bb50f07faa2d5e31530a740499
s390/vdso: reuse kstrtobool for option value parsing

"vdso" option setup already recognises integer and textual values. Yet
kstrtobool is a more common way to parse boolean values, reuse it to
unify option value parsing behavior and simplify code a bit.

While at it, __setup value parsing callbacks are expected to return
1 when an option is recognized, and returning any other value won't
trigger any error message currently, so simply return 1.

Also don't change default vdso_enabled value of 1 when "vdso" option
value is invalid.

Reviewed-by: Philipp Rudo <prudo@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/kernel/vdso.c