p += end; 
static int check_pattern (uint8_t *buf, int len, int paglen, struct nand_bbt_descr *td){	int i, end = 0;	uint8_t *p = buf;	if (td->options & NAND_BBT_SCANEMPTY) {		end = paglen + td->offs;		for (i = 0; i < end; i++) {			if (p[i] != 0xff)				return -1;		}		p += end;	}			/* Compare the pattern */	for (i = 0; i < td->len; i++) {		if (p[i] != td->pattern[i])			return -1;	}	if (td->options & NAND_BBT_SCANEMPTY) {		p += td->len;		end += td->len;		for (i = end; i < len; i++) {			if (*p++ != 0xff)				return -1;		}	}	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/c9e0536523f5191395d62f6c84d007e6ffd38d33/nand_bbt.c/buggy/drivers/mtd/nand/nand_bbt.c