mtd: rawnand: Don't overwrite the error code from nand_set_ecc_soft_ops()
authorTudor Ambarus <tudor.ambarus@microchip.com>
Thu, 17 Sep 2020 07:52:13 +0000 (10:52 +0300)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 30 Sep 2020 14:44:17 +0000 (16:44 +0200)
commitfb8c3810d7c8d2bca01292395e35b85419394f52
tree02ff40658abefe97a50dd2f8fe43c60e1a9454ce
parent6e88127904b837a0ade47eb2994feaa2b5fae437
mtd: rawnand: Don't overwrite the error code from nand_set_ecc_soft_ops()

The error code received from nand_set_ecc_soft_ops() was overwritten,
drop this redundant assignment and use the error code received from
the callee.

Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20200917075213.532161-4-tudor.ambarus@microchip.com
drivers/mtd/nand/raw/nand_base.c