9
0
Fork 0

mtd: partition: Remove unused variable

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Alexander Shiyan 2014-04-12 12:11:04 +04:00 committed by Sascha Hauer
parent e8f8e45be1
commit 40bfcc42c0
1 changed files with 0 additions and 3 deletions

View File

@ -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)