mirror of
https://github.com/littlefs-project/littlefs.git
synced 2025-11-16 12:34:34 +00:00
refactor: value stored to 'diff' is never read
This commit is contained in:
3
lfs.c
3
lfs.c
@@ -828,9 +828,6 @@ static int lfs_dir_getread(lfs_t *lfs, const lfs_mdir_t *dir,
|
|||||||
size -= diff;
|
size -= diff;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// rcache takes priority
|
|
||||||
diff = lfs_min(diff, rcache->off-off);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// load to cache, first condition can no longer fail
|
// load to cache, first condition can no longer fail
|
||||||
|
|||||||
Reference in New Issue
Block a user