summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2005-04-27 01:23:31 +0000
committerJens Arnold <amiconn@rockbox.org>2005-04-27 01:23:31 +0000
commitfd83f521a92f91b82945ba1423bf67943a34083d (patch)
tree004edd1a5b006e5c234012f8e6f48d9862e65b3a /firmware
parent9536efae4fecb35989b077f11b33cb8ca967b5b7 (diff)
downloadrockbox-fd83f521a92f91b82945ba1423bf67943a34083d.tar.gz
rockbox-fd83f521a92f91b82945ba1423bf67943a34083d.zip
Adding entries to the FAT16 root dir still failed under certain conditions. The shortcut check cannot work the way it was implemented - removed it.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6363 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/drivers/fat.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/firmware/drivers/fat.c b/firmware/drivers/fat.c
index 471eed271a..c11a9f1247 100644
--- a/firmware/drivers/fat.c
+++ b/firmware/drivers/fat.c
@@ -1337,12 +1337,6 @@ static int add_dir_entry(struct fat_dir* dir,
/* step 2: extend the dir if necessary */
if (firstentry < 0)
{
-#ifdef HAVE_FAT16SUPPORT
- if (dir->file.firstcluster < 0) {
- LDEBUGF("FAT16 root dir isn't extendable\n");
- return -3;
- }
-#endif
LDEBUGF("Adding new sector(s) to dir\n");
rc = fat_seek(&dir->file, sector);
if (rc < 0)