aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/devices/mtd_dataflash.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/devices/mtd_dataflash.c')
-rw-r--r--drivers/mtd/devices/mtd_dataflash.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/mtd/devices/mtd_dataflash.c b/drivers/mtd/devices/mtd_dataflash.c
index fc5c78171844..c76b4464e8b9 100644
--- a/drivers/mtd/devices/mtd_dataflash.c
+++ b/drivers/mtd/devices/mtd_dataflash.c
@@ -249,8 +249,6 @@ static int dataflash_read(struct mtd_info *mtd, loff_t from, size_t len,
249 pr_debug("%s: read 0x%x..0x%x\n", dev_name(&priv->spi->dev), 249 pr_debug("%s: read 0x%x..0x%x\n", dev_name(&priv->spi->dev),
250 (unsigned)from, (unsigned)(from + len)); 250 (unsigned)from, (unsigned)(from + len));
251 251
252 *retlen = 0;
253
254 /* Sanity checks */ 252 /* Sanity checks */
255 if (!len) 253 if (!len)
256 return 0; 254 return 0;
@@ -323,8 +321,6 @@ static int dataflash_write(struct mtd_info *mtd, loff_t to, size_t len,
323 pr_debug("%s: write 0x%x..0x%x\n", 321 pr_debug("%s: write 0x%x..0x%x\n",
324 dev_name(&spi->dev), (unsigned)to, (unsigned)(to + len)); 322 dev_name(&spi->dev), (unsigned)to, (unsigned)(to + len));
325 323
326 *retlen = 0;
327
328 /* Sanity checks */ 324 /* Sanity checks */
329 if (!len) 325 if (!len)
330 return 0; 326 return 0;