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

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
...@@ -45,8 +45,6 @@ static void mtdblock_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd) ...@@ -45,8 +45,6 @@ static void mtdblock_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd)
dev->blksize = 512; dev->blksize = 512;
dev->size = mtd->size >> 9; dev->size = mtd->size >> 9;
dev->tr = tr; 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; dev->readonly = 1;
add_mtd_blktrans_dev(dev); add_mtd_blktrans_dev(dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment