]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
kconfig: remove dummy assignments to cur_{filename,lineno}
authorMasahiro Yamada <masahiroy@kernel.org>
Mon, 12 Aug 2024 11:49:45 +0000 (20:49 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Sun, 1 Sep 2024 11:34:47 +0000 (20:34 +0900)
Since commit ca4c74ba306e ("kconfig: remove P_CHOICE property"),
menu_finalize() no longer calls menu_add_symbol(). No function
references cur_filename or cur_lineno after yyparse().

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

index 61900feb4254a33fa20d1df4066f69e5725bc991..e037311848404920b67caf04d1c1d2a8e8b1b7b0 100644 (file)
@@ -530,14 +530,6 @@ void conf_parse(const char *name)
                yydebug = 1;
        yyparse();
 
-       /*
-        * FIXME:
-        * cur_filename and cur_lineno are used even after yyparse();
-        * menu_finalize() calls menu_add_symbol(). This should be fixed.
-        */
-       cur_filename = "<none>";
-       cur_lineno = 0;
-
        str_printf(&autoconf_cmd,
                   "\n"
                   "$(autoconfig): $(deps_config)\n"