projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f98ee76
)
kconfig/nconf: remove useless conditionnal
author
Arnaud Lacombe
<lacombar@gmail.com>
Sun, 10 Jul 2011 07:27:33 +0000
(
03:27
-0400)
committer
Michal Marek
<mmarek@suse.cz>
Wed, 13 Jul 2011 11:54:01 +0000
(13:54 +0200)
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>
scripts/kconfig/nconf.c
patch
|
blob
|
blame
|
history
diff --git
a/scripts/kconfig/nconf.c
b/scripts/kconfig/nconf.c
index d6345df1ce1289471f87da8b94227617ccdab0a5..39ca1f1640eaf6f27cdaa0ce5a9399b42ee89e4e 100644
(file)
--- a/
scripts/kconfig/nconf.c
+++ b/
scripts/kconfig/nconf.c
@@
-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 ' ':