Killed compiling error on debug builds
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3425 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
8ef97f8db5
commit
5f12c8fbc7
1 changed files with 2 additions and 12 deletions
|
@ -337,19 +337,9 @@ static int flush_cache(int fd)
|
|||
{
|
||||
int rc;
|
||||
struct filedesc* file = &openfiles[fd];
|
||||
#if 0
|
||||
int sector = file->fileoffset / SECTOR_SIZE;
|
||||
#endif
|
||||
|
||||
DEBUGF("Flushing dirty sector cache %x\n", sector);
|
||||
|
||||
/* seek back one sector to get file position right */
|
||||
#if 0
|
||||
rc = fat_seek(&(file->fatfile), sector);
|
||||
if ( rc < 0 )
|
||||
return rc * 10 - 1;
|
||||
#endif
|
||||
|
||||
DEBUGF("Flushing dirty sector cache\n");
|
||||
|
||||
rc = fat_readwrite(&(file->fatfile), 1,
|
||||
file->cache, true );
|
||||
if ( rc < 0 )
|
||||
|
|
Loading…
Reference in a new issue