]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: rawnand: legacy: Drop useless test in nand_legacy_set_defaults()
authorBoris Brezillon <boris.brezillon@bootlin.com>
Sun, 11 Nov 2018 07:55:05 +0000 (08:55 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 7 Dec 2018 09:38:23 +0000 (10:38 +0100)
commitfe835c2985724e79fd0a61711abd9ee34115a74e
tree5795384725a3d7014a84178335e24e1d1571135e
parentf51d66a41c7dd0be28fec39f74072f8037ee5c5f
mtd: rawnand: legacy: Drop useless test in nand_legacy_set_defaults()

nand_legacy_set_defaults() returns directly if chip->exec_op != NULL,
no need to test !chip->exec_op after that.

Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Tested-by: Janusz Krzysztofik <jmkrzyszt@gmail.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/raw/nand_legacy.c