]> git.dujemihanovic.xyz Git - u-boot.git/commit
net: tftp: use IS_ENABLED(CONFIG_NET_TFTP_VARS) instead of #if
authorRasmus Villemoes <rasmus.villemoes@prevas.dk>
Fri, 14 Oct 2022 17:43:41 +0000 (19:43 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 28 Nov 2022 18:06:14 +0000 (13:06 -0500)
commit4b8c44e39c9eb1717831e3b3f31c33e0932b0767
tree3ed6b3f266f90d61c0f79bd77b7eddd8f5061698
parent06653c701040f34e05d587bf14c2600f8cb3460f
net: tftp: use IS_ENABLED(CONFIG_NET_TFTP_VARS) instead of #if

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).

Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
[trini: Update to cover CONFIG_TFTP_PORT case as well]
Signed-off-by: Tom Rini <trini@konsulko.com>
net/tftp.c