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:
parent
24a2de64ac
commit
21594a4e2a
1 changed files with 3 additions and 6 deletions
|
|
@ -966,12 +966,9 @@ int fat_getnext(struct bpb *bpb,
|
||||||
/* current or cached sector? */
|
/* current or cached sector? */
|
||||||
if ( sectoridx >= SECTOR_SIZE ) {
|
if ( sectoridx >= SECTOR_SIZE ) {
|
||||||
if ( sectoridx >= SECTOR_SIZE*2 ) {
|
if ( sectoridx >= SECTOR_SIZE*2 ) {
|
||||||
if ( index >= SECTOR_SIZE ) {
|
if ( ( index >= SECTOR_SIZE ) &&
|
||||||
if ( index >= SECTOR_SIZE*2 )
|
( index < SECTOR_SIZE*2 ))
|
||||||
ptr = ent->cached_buf;
|
ptr = lastsector;
|
||||||
else
|
|
||||||
ptr = lastsector;
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
ptr = lastsector2;
|
ptr = lastsector2;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue