Signed-off-by: Alexander Shiyan <shc_work@xxxxxxx> --- drivers/mtd/partition.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/mtd/partition.c b/drivers/mtd/partition.c index 720c2ad..c2461a0 100644 --- a/drivers/mtd/partition.c +++ b/drivers/mtd/partition.c @@ -7,11 +7,8 @@ static int mtd_part_read(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf) { - struct mtd_ecc_stats stats; int res; - stats = mtd->master->ecc_stats; - if (from >= mtd->size) len = 0; else if (from + len > mtd->size) -- 1.8.3.2 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox