summaryrefslogtreecommitdiffstats
path: root/kernel/scripts/kconfig/confdata.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/scripts/kconfig/confdata.c')
-rw-r--r--kernel/scripts/kconfig/confdata.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/kernel/scripts/kconfig/confdata.c b/kernel/scripts/kconfig/confdata.c
index c814f5767..0b7dc2fd7 100644
--- a/kernel/scripts/kconfig/confdata.c
+++ b/kernel/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;
}