# HG changeset patch # User Mychaela Falconia # Date 1477497988 0 # Node ID c10a65f7563e5ed99b0dfbe32310fc627bf92ddf # Parent 87cb03b35f776a74aa12b01e56f68ead87c03a97 target-utils/libtiffs: find the root inode even if it's preceded by some blank entries diff -r 87cb03b35f77 -r c10a65f7563e target-utils/libtiffs/init.c --- 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; }