[PATCH v3 4/4] spl: fit: improve spl_nand_fit_read(...) readability

Tom Rini trini at konsulko.com
Thu Jul 9 02:22:41 CEST 2020


On Wed, May 27, 2020 at 01:56:21PM +0200, Dario Binacchi wrote:

> 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 at amarulasolutions.com>
> Signed-off-by: Dario Binacchi <dariobin at libero.it>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200708/38520bc7/attachment.sig>


More information about the U-Boot mailing list