From df50315e63cdf13bfe111f74a81d124f291a7349 Mon Sep 17 00:00:00 2001 From: Alexander Popov Date: Mon, 7 Oct 2024 02:01:52 +0300 Subject: [PATCH] Drop some unneeded assertions --- kernel_hardening_checker/__init__.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/kernel_hardening_checker/__init__.py b/kernel_hardening_checker/__init__.py index 0c3cf70..ee8e4e3 100755 --- a/kernel_hardening_checker/__init__.py +++ b/kernel_hardening_checker/__init__.py @@ -403,7 +403,6 @@ def main() -> None: sys.exit('[!] ERROR: checking cmdline depends on checking Kconfig') elif args.sysctl: # separate sysctl checking (without kconfig) - assert(args.config is None and args.cmdline is None), 'unexpected args' if args.print: sys.exit('[!] ERROR: --sysctl and --print can\'t be used together') if args.generate: @@ -441,7 +440,6 @@ def main() -> None: if mode: sys.exit(f'[!] ERROR: wrong mode "{mode}" for --generate') arch = args.generate - assert(arch), 'unexpected empty arch from ArgumentParser' config_checklist = [] add_kconfig_checks(config_checklist, arch) print(f'CONFIG_{arch}=y') # the Kconfig fragment should describe the microarchitecture -- 2.31.1