summaryrefslogtreecommitdiffstats
path: root/scripts/kconfig
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2018-12-11 06:00:54 -0500
committerMasahiro Yamada <yamada.masahiro@socionext.com>2018-12-15 03:45:21 -0500
commit4891796c6f83bb3be5567b3053428a40329d7e37 (patch)
tree745d90dfc635542c9e74f0a672ea5a9a48f0afae /scripts/kconfig
parent2f60e46e605a9bcd8dc4fe7745b5576084900850 (diff)
kconfig: remove redundant if_block rule
The code block surrounded by "if" ... "endif" is stmt_list. Remove the redundant if_block symbol entirely. Remove "stmt_list: stmt_list end" rule as well since it would obviously cause conflicts. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'scripts/kconfig')
-rw-r--r--scripts/kconfig/zconf.y10
1 files changed, 1 insertions, 9 deletions
diff --git a/scripts/kconfig/zconf.y b/scripts/kconfig/zconf.y
index a92f167e8267..dcbf6439ace9 100644
--- a/scripts/kconfig/zconf.y
+++ b/scripts/kconfig/zconf.y
@@ -123,7 +123,6 @@ stmt_list:
123 | stmt_list common_stmt 123 | stmt_list common_stmt
124 | stmt_list choice_stmt 124 | stmt_list choice_stmt
125 | stmt_list menu_stmt 125 | stmt_list menu_stmt
126 | stmt_list end { zconf_error("unexpected end statement"); }
127 | stmt_list T_WORD error T_EOL { zconf_error("unknown statement \"%s\"", $2); } 126 | stmt_list T_WORD error T_EOL { zconf_error("unknown statement \"%s\"", $2); }
128 | stmt_list error T_EOL { zconf_error("invalid statement"); } 127 | stmt_list error T_EOL { zconf_error("invalid statement"); }
129; 128;
@@ -330,14 +329,7 @@ if_end: end
330 } 329 }
331}; 330};
332 331
333if_stmt: if_entry if_block if_end 332if_stmt: if_entry stmt_list if_end
334;
335
336if_block:
337 /* empty */
338 | if_block common_stmt
339 | if_block menu_stmt
340 | if_block choice_stmt
341; 333;
342 334
343/* menu entry */ 335/* menu entry */