diff options
author | Björn Stenberg <bjorn@haxx.se> | 2002-04-27 22:45:23 +0000 |
---|---|---|
committer | Björn Stenberg <bjorn@haxx.se> | 2002-04-27 22:45:23 +0000 |
commit | 21594a4e2ab41d421df9da78505c954ff283f6a3 (patch) | |
tree | 500812251b5079626fa3ee6c779c1ef45a3ae8b1 | |
parent | 24a2de64ace053944e4a4ab1644240dc243f5293 (diff) | |
download | rockbox-21594a4e2ab41d421df9da78505c954ff283f6a3.tar.gz rockbox-21594a4e2ab41d421df9da78505c954ff283f6a3.zip |
Slight simplification
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@277 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | firmware/drivers/fat.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/firmware/drivers/fat.c b/firmware/drivers/fat.c index dc933be599..936299e122 100644 --- a/firmware/drivers/fat.c +++ b/firmware/drivers/fat.c | |||
@@ -966,12 +966,9 @@ int fat_getnext(struct bpb *bpb, | |||
966 | /* current or cached sector? */ | 966 | /* current or cached sector? */ |
967 | if ( sectoridx >= SECTOR_SIZE ) { | 967 | if ( sectoridx >= SECTOR_SIZE ) { |
968 | if ( sectoridx >= SECTOR_SIZE*2 ) { | 968 | if ( sectoridx >= SECTOR_SIZE*2 ) { |
969 | if ( index >= SECTOR_SIZE ) { | 969 | if ( ( index >= SECTOR_SIZE ) && |
970 | if ( index >= SECTOR_SIZE*2 ) | 970 | ( index < SECTOR_SIZE*2 )) |
971 | ptr = ent->cached_buf; | 971 | ptr = lastsector; |
972 | else | ||
973 | ptr = lastsector; | ||
974 | } | ||
975 | else | 972 | else |
976 | ptr = lastsector2; | 973 | ptr = lastsector2; |
977 | } | 974 | } |