commit | cf3009f64e76fd770b63bdbe614fa3281cd402fc | [log] [tgz] |
---|---|---|
author | Alexandru Gagniuc <mr.nuke.me@gmail.com> | Wed Dec 23 08:44:11 2020 -0600 |
committer | Tom Rini <trini@konsulko.com> | Fri Jan 15 15:18:35 2021 -0500 |
tree | e97c262934f30beabc78ea1b0f61de9e68c2d660 | |
parent | e72dd34c09a4c6573e759ea52b97a2fb1611fa77 [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>