/* nand_block_markbad -  Mark block at the given offset as bad @mtd: MTD device structure @ofs: offset relative to mtd start  */
static int nand_block_markbad(struct mtd_info *mtd, loff_t ofs)
/* nand_block_markbad -  Mark block at the given offset as bad @mtd: MTD device structure @ofs: offset relative to mtd start  */
static int nand_block_markbad(struct mtd_info *mtd, loff_t ofs)
{
	struct nand_chip *chip = mtd->priv;
	int ret;
	if ((ret = nand_block_isbad(mtd, ofs))) {
		if (ret > 0)
			return 0;
		return ret;
	}
	return chip->block_markbad(mtd, ofs);
}