Merge pull request #1109 from Ryan-CW-Code/never_read

refactor: value stored to 'diff' is never read
This commit is contained in:
Christopher Haster
2025-06-30 11:39:05 -05:00
committed by GitHub

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