]> git.dujemihanovic.xyz Git - u-boot.git/commit
spl: fit: Replace #ifdef blocks with more readable constructs
authorAlexandru Gagniuc <mr.nuke.me@gmail.com>
Wed, 20 Jan 2021 16:46:55 +0000 (10:46 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 18 Feb 2021 00:46:43 +0000 (19:46 -0500)
commitaeedeae40733131467de72c68e639cf9d795e059
tree48f696e4698cd89ba894a7cb804cc9448cbbdc15
parent9e304239785dce3100303bf3dc211cf544247da0
spl: fit: Replace #ifdef blocks with more readable constructs

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@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
common/spl/spl_fit.c