Commit a1e806550e566e987e06561873ab8276ee54d130
Committed by
Michal Marek
1 parent
f98ee76955
Exists in
master
and in
4 other branches
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>
Showing 1 changed file with 1 additions and 4 deletions Side-by-side Diff
scripts/kconfig/nconf.c
... | ... | @@ -1153,10 +1153,7 @@ |
1153 | 1153 | submenu = (struct menu *) item_data(); |
1154 | 1154 | if (!submenu || !menu_is_visible(submenu)) |
1155 | 1155 | continue; |
1156 | - if (submenu) | |
1157 | - sym = submenu->sym; | |
1158 | - else | |
1159 | - sym = NULL; | |
1156 | + sym = submenu->sym; | |
1160 | 1157 | |
1161 | 1158 | switch (res) { |
1162 | 1159 | case ' ': |