[PATCH v4 7/8] spl: fit: Replace #ifdef blocks with more readable constructs
Tom Rini
trini at konsulko.com
Fri Feb 19 17:55:46 CET 2021
On Wed, Jan 20, 2021 at 10:46:55AM -0600, Alexandru Gagniuc wrote:
> Use the IS_ENABLED() macro to control code flow, instead of the
> caveman approach of sprinkling #ifdefs. Code size is not affected, as
> the linker garbage-collects unused functions. However, readability is
> improved significantly.
>
> Signed-off-by: Alexandru Gagniuc <mr.nuke.me at gmail.com>
> Reviewed-by: Simon Glass <sjg at chromium.org>
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/20210219/f52491e2/attachment.sig>
More information about the U-Boot
mailing list