Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0419a203 authored by Lee Jones's avatar Lee Jones Committed by Brian Norris
Browse files

mtd: st_spi_fsm: Avoid duplicating MTD core code

parent 3f9d720a
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -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;