From 7e258c669531441065ac1d6663551388aacd502e Mon Sep 17 00:00:00 2001 From: Alexander Popov Date: Fri, 20 Jul 2018 19:03:11 +0300 Subject: [PATCH] Rename check_state() according the new meaning --- kconfig-hardened-check.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kconfig-hardened-check.py b/kconfig-hardened-check.py index 949c19a..bd6afe5 100755 --- a/kconfig-hardened-check.py +++ b/kconfig-hardened-check.py @@ -182,10 +182,10 @@ def get_option_state(options, name): return options[name] if name in options else None -def check_state(options): +def perform_checks(parsed_options): for o in opt_list: opt = o[0] - opt.state = get_option_state(options, opt.name) + opt.state = get_option_state(parsed_options, opt.name) _, o[1] = opt.check() @@ -214,7 +214,7 @@ def check_config_file(fname): if option is not None: parsed_options[option] = value - check_state(parsed_options) + perform_checks(parsed_options) print_check_results() if debug_mode: -- 2.31.1