Browse Source

refactor: value stored to 'diff' is never read

ryancw 6 months ago
parent
commit
0755b00c21
1 changed files with 0 additions and 3 deletions
  1. 0 3
      lfs.c

+ 0 - 3
lfs.c

@@ -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