commit | f2de0fa64306651bc5aa04f6bb56c057658486d5 | [log] [tgz] |
---|---|---|
author | Boris BREZILLON <boris.brezillon@free-electrons.com> | Mon Mar 07 10:46:53 2016 +0100 |
committer | Brian Norris <computersforpeace@gmail.com> | Mon Mar 07 16:23:09 2016 -0800 |
tree | ae866f94af372f3a00cc799caed7d5606a1d3330 | |
parent | 29f1058a90b319b01c4cf469720e0350212d5c9c [diff] |
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>