commit | aeedeae40733131467de72c68e639cf9d795e059 | [log] [tgz] |
---|---|---|
author | Alexandru Gagniuc <mr.nuke.me@gmail.com> | Wed Jan 20 10:46:55 2021 -0600 |
committer | Tom Rini <trini@konsulko.com> | Wed Feb 17 19:46:43 2021 -0500 |
tree | 48f696e4698cd89ba894a7cb804cc9448cbbdc15 | |
parent | 9e304239785dce3100303bf3dc211cf544247da0 [diff] |
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>