aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/kconfig/symbol.c
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2015-07-07 15:48:23 -0400
committerMichal Marek <mmarek@suse.com>2015-08-19 10:41:02 -0400
commit35ffd08d9bc92b5d56f6536406c379d82a757e7a (patch)
tree2599447500053e2f630aa332ddd09d16c0853f12 /scripts/kconfig/symbol.c
parentd770e558e21961ad6cfdf0ff7df0eb5d7d4f0754 (diff)
kconfig: Delete unnecessary checks before the function call "sym_calc_value"
The sym_calc_value() function tests whether its argument is NULL and then returns immediately. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: Michal Marek <mmarek@suse.com>
Diffstat (limited to 'scripts/kconfig/symbol.c')
-rw-r--r--scripts/kconfig/symbol.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/kconfig/symbol.c b/scripts/kconfig/symbol.c
index 70c5ee189dce..50878dc025a5 100644
--- a/scripts/kconfig/symbol.c
+++ b/scripts/kconfig/symbol.c
@@ -467,8 +467,7 @@ void sym_clear_all_valid(void)
467 for_all_symbols(i, sym) 467 for_all_symbols(i, sym)
468 sym->flags &= ~SYMBOL_VALID; 468 sym->flags &= ~SYMBOL_VALID;
469 sym_add_change_count(1); 469 sym_add_change_count(1);
470 if (modules_sym) 470 sym_calc_value(modules_sym);
471 sym_calc_value(modules_sym);
472} 471}
473 472
474bool sym_tristate_within_range(struct symbol *sym, tristate val) 473bool sym_tristate_within_range(struct symbol *sym, tristate val)