mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
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>
This commit is contained in:
parent
99f3351a6d
commit
996852a97b
1 changed files with 1 additions and 1 deletions
|
@ -585,7 +585,7 @@ void nand_legacy_set_defaults(struct nand_chip *chip)
|
|||
chip->legacy.chip_delay = 20;
|
||||
|
||||
/* check, if a user supplied command function given */
|
||||
if (!chip->legacy.cmdfunc && !chip->exec_op)
|
||||
if (!chip->legacy.cmdfunc)
|
||||
chip->legacy.cmdfunc = nand_command;
|
||||
|
||||
/* check, if a user supplied wait function given */
|
||||
|
|
Loading…
Add table
Reference in a new issue