settings: file: remove unnecessary drop of const identifier
`settings_file_save_priv()` already takes `const char *value`, so there is no reason to cast to `char *` before passing. Signed-off-by: Marcin Niestroj <m.niestroj@emb.dev>
This commit is contained in:
parent
312bddfe17
commit
36b06f4af8
1 changed files with 1 additions and 1 deletions
|
@ -444,7 +444,7 @@ static int settings_file_save(struct settings_store *cs, const char *name,
|
|||
if (cdca.is_dup == 1) {
|
||||
return 0;
|
||||
}
|
||||
return settings_file_save_priv(cs, name, (char *)value, val_len);
|
||||
return settings_file_save_priv(cs, name, value, val_len);
|
||||
}
|
||||
|
||||
static int read_handler(void *ctx, off_t off, char *buf, size_t *len)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue