]> git.karo-electronics.de Git - linux-beck.git/commit
mtd: mtdswap: remove useless if (!mtd->ecclayout) test
authorBoris BREZILLON <boris.brezillon@free-electrons.com>
Mon, 7 Mar 2016 09:46:53 +0000 (10:46 +0100)
committerBrian Norris <computersforpeace@gmail.com>
Tue, 8 Mar 2016 00:23:09 +0000 (16:23 -0800)
commitf2de0fa64306651bc5aa04f6bb56c057658486d5
treeae866f94af372f3a00cc799caed7d5606a1d3330
parent29f1058a90b319b01c4cf469720e0350212d5c9c
mtd: mtdswap: remove useless if (!mtd->ecclayout) test

If the MTD device does not have OOB, the mtd->oobsize and mtd->oobavail
fields are set to zero, and we are testing those values in the following
test.
Remove the useless if (!mtd->ecclayout) test.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/mtdswap.c