aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2018-01-11 08:39:41 -0500
committerMasahiro Yamada <yamada.masahiro@socionext.com>2018-01-21 10:49:31 -0500
commit84dd95d4f87a0dd2b635df936b1fc27d7424e097 (patch)
treee131e99f41c9a83ce61b2746c420a503bb9be89d /scripts
parent5a3dc717b3c785242e6d40f08288947cb6751ee4 (diff)
kconfig: make conf_unsaved a local variable of conf_read()
conf_unsaved is initialized by conf_read_simple(), but it is possible to move it to conf_read() so that it can be a local variable. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/kconfig/confdata.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/kconfig/confdata.c b/scripts/kconfig/confdata.c
index 027f5b4892cf..f7927391de30 100644
--- a/scripts/kconfig/confdata.c
+++ b/scripts/kconfig/confdata.c
@@ -28,7 +28,7 @@ static void conf_message(const char *fmt, ...)
28 __attribute__ ((format (printf, 1, 2))); 28 __attribute__ ((format (printf, 1, 2)));
29 29
30static const char *conf_filename; 30static const char *conf_filename;
31static int conf_lineno, conf_warnings, conf_unsaved; 31static int conf_lineno, conf_warnings;
32 32
33const char conf_defname[] = "arch/$ARCH/defconfig"; 33const char conf_defname[] = "arch/$ARCH/defconfig";
34 34
@@ -290,7 +290,6 @@ load:
290 conf_filename = name; 290 conf_filename = name;
291 conf_lineno = 0; 291 conf_lineno = 0;
292 conf_warnings = 0; 292 conf_warnings = 0;
293 conf_unsaved = 0;
294 293
295 def_flags = SYMBOL_DEF << def; 294 def_flags = SYMBOL_DEF << def;
296 for_all_symbols(i, sym) { 295 for_all_symbols(i, sym) {
@@ -409,6 +408,7 @@ setsym:
409int conf_read(const char *name) 408int conf_read(const char *name)
410{ 409{
411 struct symbol *sym; 410 struct symbol *sym;
411 int conf_unsaved = 0;
412 int i; 412 int i;
413 413
414 sym_set_change_count(0); 414 sym_set_change_count(0);