/* Check for a pattern at the given place. Used to search bad block tables and good / bad block identifiers. Same as check_pattern, but no optional empty check.  */
static int check_short_pattern(uint8_t *buf, struct nand_bbt_descr *td)
/* Check for a pattern at the given place. Used to search bad block tables and good / bad block identifiers. Same as check_pattern, but no optional empty check.  */
static int check_short_pattern(uint8_t *buf, struct nand_bbt_descr *td)
{
	if (memcmp(buf + td->offs, td->pattern, td->len))
		return -1;
	return 0;
}