[Buildroot] [PATCHv3 01/12] toolchain-external: reduce nesting in copy_toolchain_sysroot

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Wed Mar 1 22:22:21 UTC 2017


Hello,

On Tue,  7 Feb 2017 22:56:38 +0100, Thomas De Schampheleire wrote:
> From: Thomas De Schampheleire <thomas.de_schampheleire at nokia.com>
> 
> As discussed with Thomas Petazzoni, we can reduce the nesting level by early
> returning on an invalid iteration.
> 
> I did not move the 'else' case (the common case) outside the if-else because
> it would make the code less symmetrical and IMO makes it _less_ clear.
> 
> Signed-off-by: Thomas De Schampheleire <thomas.de_schampheleire at nokia.com>
> ---
> v3: new patch

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com


More information about the buildroot mailing list