aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnaud Lacombe <lacombar@gmail.com>2011-07-10 03:27:33 -0400
committerMichal Marek <mmarek@suse.cz>2011-07-13 07:54:01 -0400
commita1e806550e566e987e06561873ab8276ee54d130 (patch)
tree3a21c4c542913dfbd5e4206b3955e62a2aa0ef22
parentf98ee76955f883abf2ea2a5e5b43deab01734f47 (diff)
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: Arnaud Lacombe <lacombar@gmail.com> Signed-off-by: Michal Marek <mmarek@suse.cz>
-rw-r--r--scripts/kconfig/nconf.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/scripts/kconfig/nconf.c b/scripts/kconfig/nconf.c
index d6345df1ce12..39ca1f1640ea 100644
--- a/scripts/kconfig/nconf.c
+++ b/scripts/kconfig/nconf.c
@@ -1153,10 +1153,7 @@ static void conf(struct menu *menu)
1153 submenu = (struct menu *) item_data(); 1153 submenu = (struct menu *) item_data();
1154 if (!submenu || !menu_is_visible(submenu)) 1154 if (!submenu || !menu_is_visible(submenu))
1155 continue; 1155 continue;
1156 if (submenu) 1156 sym = submenu->sym;
1157 sym = submenu->sym;
1158 else
1159 sym = NULL;
1160 1157
1161 switch (res) { 1158 switch (res) {
1162 case ' ': 1159 case ' ':