summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/chips/map_absent.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/chips/map_absent.c')
-rw-r--r--drivers/mtd/chips/map_absent.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/mtd/chips/map_absent.c b/drivers/mtd/chips/map_absent.c
index 6be2eddfea4..f7a5bca92ae 100644
--- a/drivers/mtd/chips/map_absent.c
+++ b/drivers/mtd/chips/map_absent.c
@@ -70,13 +70,11 @@ static struct mtd_info *map_absent_probe(struct map_info *map)
static int map_absent_read(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf)
{
- *retlen = 0;
return -ENODEV;
}
static int map_absent_write(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char *buf)
{
- *retlen = 0;
return -ENODEV;
}