From fd83f521a92f91b82945ba1423bf67943a34083d Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Wed, 27 Apr 2005 01:23:31 +0000 Subject: [PATCH] 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 --- firmware/drivers/fat.c | 6 ------ 1 file changed, 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)