]> git.dujemihanovic.xyz Git - u-boot.git/commit
spl: fit: improve spl_nand_fit_read(...) readability
authorDario Binacchi <dariobin@libero.it>
Wed, 27 May 2020 11:56:21 +0000 (13:56 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 8 Jul 2020 21:21:46 +0000 (17:21 -0400)
commit84dd1902443cf500b2536eeb14d6662c6b502698
tree3c1d47d2e12dac3fcf9b089972193043ab0c206b
parent9f6a14c47ff95354185248ea6e7b1c695e64939e
spl: fit: improve spl_nand_fit_read(...) readability

Replacing the ret variable with err and handling first the error
condition about the value returned by the spl_nand_fit_read routine,
improves the code readability.
Furthermore, the 'else' int the 'else return ret' instruction was
useless.

cc: Michael Trimarchi <michael@amarulasolutions.com>
Signed-off-by: Dario Binacchi <dariobin@libero.it>
common/spl/spl_nand.c