diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2015-07-07 21:48:23 +0200 |
---|---|---|
committer | Michal Marek <mmarek@suse.com> | 2015-08-19 16:41:02 +0200 |
commit | 35ffd08d9bc92b5d56f6536406c379d82a757e7a (patch) | |
tree | 2599447500053e2f630aa332ddd09d16c0853f12 /scripts/kconfig/confdata.c | |
parent | d770e558e21961ad6cfdf0ff7df0eb5d7d4f0754 (diff) | |
download | linux-stable-35ffd08d9bc92b5d56f6536406c379d82a757e7a.tar.gz linux-stable-35ffd08d9bc92b5d56f6536406c379d82a757e7a.tar.bz2 linux-stable-35ffd08d9bc92b5d56f6536406c379d82a757e7a.zip |
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/confdata.c')
-rw-r--r-- | scripts/kconfig/confdata.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/scripts/kconfig/confdata.c b/scripts/kconfig/confdata.c index c814f57672fc..0b7dc2fd7bac 100644 --- a/scripts/kconfig/confdata.c +++ b/scripts/kconfig/confdata.c @@ -268,8 +268,7 @@ int conf_read_simple(const char *name, int def) goto load; sym_add_change_count(1); if (!sym_defconfig_list) { - if (modules_sym) - sym_calc_value(modules_sym); + sym_calc_value(modules_sym); return 1; } @@ -404,9 +403,7 @@ setsym: } free(line); fclose(in); - - if (modules_sym) - sym_calc_value(modules_sym); + sym_calc_value(modules_sym); return 0; } |