Rename check_state() according the new meaning
authorAlexander Popov <alex.popov@linux.com>
Fri, 20 Jul 2018 16:03:11 +0000 (19:03 +0300)
committerAlexander Popov <alex.popov@linux.com>
Fri, 20 Jul 2018 16:03:11 +0000 (19:03 +0300)
kconfig-hardened-check.py

index 949c19a56fbb3e2fed62484bdfca007006b2a017..bd6afe51d572ea3af5123ad15eed9069af9f10ea 100755 (executable)
@@ -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: