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

Commit af63a3bc authored by Jörn Engel's avatar Jörn Engel Committed by David Woodhouse
Browse files

Make mtdblock_ro unconditionally readonly



mtdblock_ro is by definition readonly.  Remove the silly checks.

Signed-off-by: default avatarJörn Engel <joern@wohnheim.fh-wedel.de>
Signed-off-by: default avatarDavid Woodhouse <dwmw2@infradead.org>
parent 7f7c08df
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -45,8 +45,6 @@ static void mtdblock_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd)
	dev->blksize = 512;
	dev->size = mtd->size >> 9;
	dev->tr = tr;
	if ((mtd->flags & (MTD_CLEAR_BITS|MTD_SET_BITS|MTD_WRITEABLE)) !=
	    (MTD_CLEAR_BITS|MTD_SET_BITS|MTD_WRITEABLE))
	dev->readonly = 1;

	add_mtd_blktrans_dev(dev);