storage: rename shadow variables
Rename shadow variables found by -Wshadow. Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
parent
93677ef58f
commit
b819a00b06
|
@ -28,12 +28,12 @@ static int settings_direct_loader(const char *key, size_t len,
|
|||
/* Handle the subtree if it is an exact key match. */
|
||||
if (settings_name_next(key, NULL) == 0) {
|
||||
size_t bytes_written = 0;
|
||||
ssize_t len = read_cb(cb_arg, &bytes_written,
|
||||
ssize_t cb_len = read_cb(cb_arg, &bytes_written,
|
||||
sizeof(bytes_written));
|
||||
|
||||
if (len != sizeof(ctx->bytes_written)) {
|
||||
if (cb_len != sizeof(ctx->bytes_written)) {
|
||||
LOG_ERR("Unable to read bytes_written from storage");
|
||||
return len;
|
||||
return cb_len;
|
||||
}
|
||||
|
||||
/* Check that loaded progress is not outdated. */
|
||||
|
|
Loading…
Reference in a new issue