From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Wed, 8 Jul 2020 20:22:41 -0400 Subject: [PATCH v3 4/4] spl: fit: improve spl_nand_fit_read(...) readability In-Reply-To: <20200527115621.1062-5-dariobin@libero.it> References: <20200527115621.1062-1-dariobin@libero.it> <20200527115621.1062-5-dariobin@libero.it> Message-ID: <20200709002241.GA1306@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > Signed-off-by: Dario Binacchi 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: