Skip to content

Commit 84dd95d

Browse files
committed
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>
1 parent 5a3dc71 commit 84dd95d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎scripts/kconfig/confdata.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ static void conf_message(const char *fmt, ...)
2828
__attribute__ ((format (printf, 1, 2)));
2929

3030
static const char *conf_filename;
31-
static int conf_lineno, conf_warnings, conf_unsaved;
31+
static int conf_lineno, conf_warnings;
3232

3333
const char conf_defname[] = "arch/$ARCH/defconfig";
3434

@@ -290,7 +290,6 @@ int conf_read_simple(const char *name, int def)
290290
conf_filename = name;
291291
conf_lineno = 0;
292292
conf_warnings = 0;
293-
conf_unsaved = 0;
294293

295294
def_flags = SYMBOL_DEF << def;
296295
for_all_symbols(i, sym) {
@@ -409,6 +408,7 @@ int conf_read_simple(const char *name, int def)
409408
int conf_read(const char *name)
410409
{
411410
struct symbol *sym;
411+
int conf_unsaved = 0;
412412
int i;
413413

414414
sym_set_change_count(0);

0 commit comments

Comments
 (0)