diff options
author | Vasily Gorbik <gor@linux.ibm.com> | 2019-08-19 17:41:17 +0200 |
---|---|---|
committer | Vasily Gorbik <gor@linux.ibm.com> | 2019-08-26 12:51:17 +0200 |
commit | 3d644364533931df298dc4f026a74731c2f752cb (patch) | |
tree | 48c93f774d7163571db5eb6a8c87677c38695a92 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 227f52a43a2fa0bb50f07faa2d5e31530a740499 (diff) |
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>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions