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

Commit 996852a9 authored by Boris Brezillon's avatar Boris Brezillon Committed by Miquel Raynal
Browse files

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: default avatarBoris Brezillon <boris.brezillon@bootlin.com>
Tested-by: default avatarJanusz Krzysztofik <jmkrzyszt@gmail.com>
Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
parent 99f3351a
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -585,7 +585,7 @@ void nand_legacy_set_defaults(struct nand_chip *chip)
		chip->legacy.chip_delay = 20;
		chip->legacy.chip_delay = 20;


	/* check, if a user supplied command function given */
	/* check, if a user supplied command function given */
	if (!chip->legacy.cmdfunc && !chip->exec_op)
	if (!chip->legacy.cmdfunc)
		chip->legacy.cmdfunc = nand_command;
		chip->legacy.cmdfunc = nand_command;


	/* check, if a user supplied wait function given */
	/* check, if a user supplied wait function given */