forked from len0rd/rockbox
No need to call fat_truncate() to delete the file, fat_remove() frees all clusters anyway
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4508 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
0876cec68a
commit
b8beff39e9
1 changed files with 0 additions and 7 deletions
|
|
@ -254,13 +254,6 @@ int remove(const char* name)
|
|||
return fd * 10 - 1;
|
||||
|
||||
file = &openfiles[fd];
|
||||
rc = fat_truncate(&(file->fatfile));
|
||||
if ( rc < 0 ) {
|
||||
DEBUGF("Failed truncating file: %d\n", rc);
|
||||
errno = EIO;
|
||||
return rc * 10 - 2;
|
||||
}
|
||||
|
||||
rc = fat_remove(&(file->fatfile));
|
||||
if ( rc < 0 ) {
|
||||
DEBUGF("Failed removing file: %d\n", rc);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue