FreeCalypso > hg > freecalypso-tools
changeset 61:c10a65f7563e
target-utils/libtiffs: find the root inode even if it's preceded
by some blank entries
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Wed, 26 Oct 2016 16:06:28 +0000 |
parents | 87cb03b35f77 |
children | 2dd9dbe3f4a7 |
files | target-utils/libtiffs/init.c |
diffstat | 1 files changed, 0 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/target-utils/libtiffs/init.c Wed Oct 26 15:52:14 2016 +0000 +++ b/target-utils/libtiffs/init.c Wed Oct 26 16:06:28 2016 +0000 @@ -4,9 +4,6 @@ #include "macros.h" static const u8 ffs_sector_signature[6] = {'F', 'f', 's', '#', 0x10, 0x02}; -static const u8 blank_flash_line[16] = {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, - 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, - 0xFF, 0xFF, 0xFF, 0xFF}; static find_indexblk() @@ -45,10 +42,6 @@ return(-1); } irec = tiffs_active_index + ino; - if (!bcmp((u8 *) irec, blank_flash_line, 16)) { - printf("Error: Hit blank flash, no root inode found\n"); - return(-1); - } if (irec->type == OBJTYPE_DIR && *inode_to_dataptr(irec) == '/') break; }