[PATCH 11/12] mtd: partition: Remove unused variable

Alexander Shiyan shc_work at mail.ru
Sat Apr 12 01:11:04 PDT 2014


Signed-off-by: Alexander Shiyan <shc_work at mail.ru>
---
 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




More information about the barebox mailing list