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:
parent
e8f8e45be1
commit
40bfcc42c0
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue