From: Arnaud Lacombe Date: Sun, 10 Jul 2011 07:27:33 +0000 (-0400) Subject: kconfig/nconf: remove useless conditionnal X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a1e806550e566e987e06561873ab8276ee54d130;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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 Signed-off-by: Arnaud Lacombe Signed-off-by: Michal Marek --- 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) 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 ' ':