mtd: nand: raw: atmel: remove unnecessary return value
authorMarcus Folkesson <marcus.folkesson@gmail.com>
Fri, 9 Aug 2024 12:15:43 +0000 (14:15 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 17 Dec 2024 19:17:41 +0000 (13:17 -0600)
commitbb736358e56bd8622eb7557d334d987b2bb66b20
tree9c67d68bcfc6601e68f65b5e48a0e7e157e877a8
parent75ad667aad2a6f488d894633e1a8656137572adc
mtd: nand: raw: atmel: remove unnecessary return value

The condition 'ret' is always true as it is never set to other than
-EIO.

Remove 'ret' and the condition for copy.

Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
Reviewed-by: Michael Trimarchi <micheal@amarulasolutions.com>
drivers/mtd/nand/raw/atmel/nand-controller.c