mtd: st_spi_fsm: Avoid duplicating MTD core code
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Sat Apr 5 02:59:06 EDT 2014
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=0419a203f865603654953f407cf062309330f37e
Commit: 0419a203f865603654953f407cf062309330f37e
Parent: 3f9d720a4d29834b8362d820537acb042c17e33c
Author: Lee Jones <lee.jones at linaro.org>
AuthorDate: Thu Mar 20 11:11:44 2014 +0000
Committer: Brian Norris <computersforpeace at gmail.com>
CommitDate: Thu Mar 20 04:56:51 2014 -0700
mtd: st_spi_fsm: Avoid duplicating MTD core code
Reported-by: Brian Norris <computersforpeace at gmail.com>
Signed-off-by: Lee Jones <lee.jones at linaro.org>
Signed-off-by: Brian Norris <computersforpeace at gmail.com>
---
drivers/mtd/devices/st_spi_fsm.c | 8 --------
1 file changed, 8 deletions(-)
diff --git a/drivers/mtd/devices/st_spi_fsm.c b/drivers/mtd/devices/st_spi_fsm.c
index d1fb1e5..80088e4 100644
--- a/drivers/mtd/devices/st_spi_fsm.c
+++ b/drivers/mtd/devices/st_spi_fsm.c
@@ -1729,14 +1729,6 @@ static int stfsm_mtd_write(struct mtd_info *mtd, loff_t to, size_t len,
dev_dbg(fsm->dev, "%s to 0x%08x, len %zd\n", __func__, (u32)to, len);
- *retlen = 0;
-
- if (!len)
- return 0;
-
- if (to + len > mtd->size)
- return -EINVAL;
-
/* Offset within page */
page_offs = to % FLASH_PAGESIZE;
More information about the linux-mtd-cvs
mailing list