Commit a1e80655 authored by Arnaud Lacombe's avatar Arnaud Lacombe Committed by 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: default avatarArnaud Lacombe <lacombar@gmail.com>
Signed-off-by: default avatarMichal Marek <mmarek@suse.cz>
parent f98ee769
......@@ -1153,10 +1153,7 @@ static void conf(struct menu *menu)
submenu = (struct menu *) item_data();
if (!submenu || !menu_is_visible(submenu))
continue;
if (submenu)
sym = submenu->sym;
else
sym = NULL;
sym = submenu->sym;
switch (res) {
case ' ':
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment