summaryrefslogtreecommitdiff
path: root/firmware/drivers/fat.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/fat.c')
-rw-r--r--firmware/drivers/fat.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/firmware/drivers/fat.c b/firmware/drivers/fat.c
index f3d6f6145c..68a1f14b02 100644
--- a/firmware/drivers/fat.c
+++ b/firmware/drivers/fat.c
@@ -431,7 +431,6 @@ static int read_entry(int entry)
431 thisfatentoffset = fatoffset % fat_bpb.bpb_bytspersec; 431 thisfatentoffset = fatoffset % fat_bpb.bpb_bytspersec;
432 432
433 /* Load the sector if it is not cached */ 433 /* Load the sector if it is not cached */
434 debugf("Loading FAT sector %d\n", thisfatsecnum);
435 sec = cache_fat_sector(thisfatsecnum); 434 sec = cache_fat_sector(thisfatsecnum);
436 if(!sec) 435 if(!sec)
437 { 436 {
@@ -451,11 +450,8 @@ static int get_next_cluster(unsigned int cluster)
451{ 450{
452 int next_cluster; 451 int next_cluster;
453 452
454 debugf("get_next_cluster(%d)\n", cluster);
455 next_cluster = read_entry(cluster); 453 next_cluster = read_entry(cluster);
456 454
457 debugf("next cluster is %d\n", next_cluster);
458
459 /* is this last cluster in chain? */ 455 /* is this last cluster in chain? */
460 if ( next_cluster >= 0x0ffffff8 ) 456 if ( next_cluster >= 0x0ffffff8 )
461 return 0; 457 return 0;