From c8890e057a0a7a0ab9ffc1ce11264c3119cf706f Mon Sep 17 00:00:00 2001 From: Renaud Barbier Date: Wed, 2 Jul 2014 16:55:14 +0100 Subject: [PATCH] mtd: delete partition erase size initialisation Delete the partition erase size initialisation to let the code that follows determine the biggest partition erase size. Signed-off-by: Sascha Hauer --- drivers/mtd/partition.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/mtd/partition.c b/drivers/mtd/partition.c index 5c0d46fda..9b2b20ef5 100644 --- a/drivers/mtd/partition.c +++ b/drivers/mtd/partition.c @@ -108,7 +108,6 @@ struct mtd_info *mtd_add_partition(struct mtd_info *mtd, off_t offset, part->type = mtd->type; part->flags = mtd->flags; part->parent = &mtd->class_dev; - part->erasesize = mtd->erasesize; part->writesize = mtd->writesize; part->writebufsize = mtd->writebufsize; part->oobsize = mtd->oobsize;