提交 a1e80655 编写于 作者: A Arnaud Lacombe 提交者: Michal Marek

kconfig/nconf: remove useless conditionnal

After the test

	if (!submenu || ...)
		continue;

the variable `submenu' can _not_ be NULL, so do not test for this
situation.

Cc: Nir Tzachar <nir.tzachar@gmail.com>
Signed-off-by: NArnaud Lacombe <lacombar@gmail.com>
Signed-off-by: NMichal Marek <mmarek@suse.cz>
上级 f98ee769
...@@ -1153,10 +1153,7 @@ static void conf(struct menu *menu) ...@@ -1153,10 +1153,7 @@ static void conf(struct menu *menu)
submenu = (struct menu *) item_data(); submenu = (struct menu *) item_data();
if (!submenu || !menu_is_visible(submenu)) if (!submenu || !menu_is_visible(submenu))
continue; continue;
if (submenu) sym = submenu->sym;
sym = submenu->sym;
else
sym = NULL;
switch (res) { switch (res) {
case ' ': case ' ':
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册