refactor: value stored to 'diff' is never read

This commit is contained in:
ryancw 2025-05-27 20:00:29 +08:00
parent 16ceb67934
commit 0755b00c21

3
lfs.c
View File

@ -828,9 +828,6 @@ static int lfs_dir_getread(lfs_t *lfs, const lfs_mdir_t *dir,
size -= diff;
continue;
}
// rcache takes priority
diff = lfs_min(diff, rcache->off-off);
}
// load to cache, first condition can no longer fail