Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit c181689

Browse files
committed
kconfig: remove unneeded code for user-supplied values being out of range
This is a leftover from commit ce1fc93 ("kconfig: do not clear SYMBOL_DEF_USER when the value is out of range"). This code is now redundant because if a user-supplied value is out of range, the value adjusted by sym_validate_range() differs, and conf_unsaved has already been incremented a few lines above. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
1 parent c3f38fa commit c181689

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

scripts/kconfig/confdata.c

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -533,19 +533,6 @@ int conf_read(const char *name)
533533
*/
534534
if (sym->visible == no && !conf_unsaved)
535535
sym->flags &= ~SYMBOL_DEF_USER;
536-
switch (sym->type) {
537-
case S_STRING:
538-
case S_INT:
539-
case S_HEX:
540-
/* Reset a string value if it's out of range */
541-
if (sym_string_within_range(sym, sym->def[S_DEF_USER].val))
542-
break;
543-
sym->flags &= ~SYMBOL_VALID;
544-
conf_unsaved++;
545-
break;
546-
default:
547-
break;
548-
}
549536
}
550537
}
551538

0 commit comments

Comments
 (0)