Skip to content

Commit ab5bc76

Browse files
committed
kconfig: remove unnecessary cast in sym_get_string()
The explicit casting from (char *) to (const char *) is unneeded. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
1 parent 226ac19 commit ab5bc76

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/kconfig/symbol.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -879,7 +879,7 @@ const char *sym_get_string_value(struct symbol *sym)
879879
default:
880880
;
881881
}
882-
return (const char *)sym->curr.val;
882+
return sym->curr.val;
883883
}
884884

885885
bool sym_is_changeable(const struct symbol *sym)

0 commit comments

Comments
 (0)