[PATCH 5/6] net: tftp: use IS_ENABLED(CONFIG_NET_TFTP_VARS) instead of #if

Ramon Fried rfried.dev at gmail.com
Sun Oct 16 20:28:57 CEST 2022


On Fri, Oct 14, 2022 at 8:44 PM Rasmus Villemoes
<rasmus.villemoes at prevas.dk> wrote:
>
> Nothing inside this block depends on NET_TFTP_VARS to be set to parse
> correctly. Switch to C if() in preparation for adding code before
> this (to avoid a declaration-after-statement warning).
What's the motivation here ? The #ifdef is supposed to allow smaller
code size if feature is not used.


More information about the U-Boot mailing list