]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
kconfig: remove unneeded sym_find() call in conf_parse()
authorMasahiro Yamada <masahiroy@kernel.org>
Fri, 2 Feb 2024 15:58:03 +0000 (00:58 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Mon, 19 Feb 2024 09:20:40 +0000 (18:20 +0900)
sym_find("n") is equivalent to &symbol_no.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/kconfig/parser.y

index 5ab2e3f7ca33112d804ddb91502251b16e8121ef..625224973c5118f13999a47e45295ef80b46b2e9 100644 (file)
@@ -494,7 +494,7 @@ void conf_parse(const char *name)
        if (yynerrs)
                exit(1);
        if (!modules_sym)
-               modules_sym = sym_find( "n" );
+               modules_sym = &symbol_no;
 
        if (!menu_has_prompt(&rootmenu)) {
                current_entry = &rootmenu;