diff options
| author | Linus Nielsen Feltzing <linus@haxx.se> | 2004-04-16 08:54:13 +0000 |
|---|---|---|
| committer | Linus Nielsen Feltzing <linus@haxx.se> | 2004-04-16 08:54:13 +0000 |
| commit | b8beff39e92ebe8c417ef6b9d1a7d467bf84826a (patch) | |
| tree | adeed2e25be4441098d1ec92bd04b9b08c7b0aa9 | |
| parent | 0876cec68a9aba86b6e43b06b2892f47dbb4a23b (diff) | |
| download | rockbox-b8beff39e92ebe8c417ef6b9d1a7d467bf84826a.zip rockbox-b8beff39e92ebe8c417ef6b9d1a7d467bf84826a.tar.gz rockbox-b8beff39e92ebe8c417ef6b9d1a7d467bf84826a.tar.bz2 rockbox-b8beff39e92ebe8c417ef6b9d1a7d467bf84826a.tar.xz | |
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
| -rw-r--r-- | firmware/common/file.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/firmware/common/file.c b/firmware/common/file.c index 5c1db10..18e66c0 100644 --- a/firmware/common/file.c +++ b/firmware/common/file.c @@ -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); |