Skip to content

Commit

Permalink
kconfig/nconf: remove useless conditionnal
Browse files Browse the repository at this point in the history
After the test

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

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

Cc: Nir Tzachar <[email protected]>
Signed-off-by: Arnaud Lacombe <[email protected]>
Signed-off-by: Michal Marek <[email protected]>
  • Loading branch information
lacombar authored and michal42 committed Jul 13, 2011
1 parent f98ee76 commit a1e8065
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions scripts/kconfig/nconf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 ' ':
Expand Down

0 comments on commit a1e8065

Please sign in to comment.