subsys/settings/fcb: removed unused var

Removed the `wbs` var since it isn't used.

Signed-off-by: Yong Cong Sin <yongcong.sin@gmail.com>
This commit is contained in:
Yong Cong Sin 2023-01-09 23:37:08 +08:00 committed by Fabio Baltieri
commit 20a05b6838

View file

@ -329,13 +329,11 @@ static int settings_fcb_save_priv(struct settings_store *cs, const char *name,
int len;
int rc = -EINVAL;
int i;
uint8_t wbs;
if (!name) {
return -EINVAL;
}
wbs = cf->cf_fcb.f_align;
len = settings_line_len_calc(name, val_len);
for (i = 0; i < cf->cf_fcb.f_sector_cnt; i++) {