/* nand_block_isbad -  Check if block at offset is bad @mtd: MTD device structure @offs: offset relative to mtd start  */
static int nand_block_isbad(struct mtd_info *mtd, loff_t offs)
/* nand_block_isbad -  Check if block at offset is bad @mtd: MTD device structure @offs: offset relative to mtd start  */
static int nand_block_isbad(struct mtd_info *mtd, loff_t offs)
{
	if (offs > mtd->size)
		return -EINVAL;
	return nand_block_checkbad(mtd, offs, 1, 0);
}