1
0
Fork 0
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:
Linus Nielsen Feltzing 2004-04-16 08:54:13 +00:00
parent 0876cec68a
commit b8beff39e9

View file

@ -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);