1
0
Fork 0
forked from len0rd/rockbox

Slight simplification

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@277 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Björn Stenberg 2002-04-27 22:45:23 +00:00
parent 24a2de64ac
commit 21594a4e2a

View file

@ -966,12 +966,9 @@ int fat_getnext(struct bpb *bpb,
/* current or cached sector? */
if ( sectoridx >= SECTOR_SIZE ) {
if ( sectoridx >= SECTOR_SIZE*2 ) {
if ( index >= SECTOR_SIZE ) {
if ( index >= SECTOR_SIZE*2 )
ptr = ent->cached_buf;
else
ptr = lastsector;
}
if ( ( index >= SECTOR_SIZE ) &&
( index < SECTOR_SIZE*2 ))
ptr = lastsector;
else
ptr = lastsector2;
}