cmd: Remove CMD_NET protection
authorMichal Simek <michal.simek@amd.com>
Fri, 11 Apr 2025 06:31:19 +0000 (08:31 +0200)
committerJerome Forissier <jerome.forissier@linaro.org>
Wed, 23 Apr 2025 07:58:07 +0000 (09:58 +0200)
CMD_PXE is already under CMD_NET in Kconfig that's why make no sense to
have another ifdef inside source code.

Signed-off-by: Michal Simek <michal.simek@amd.com>
Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de>
cmd/pxe.c

index 37b8dea..0f26b3b 100644 (file)
--- a/cmd/pxe.c
+++ b/cmd/pxe.c
@@ -13,7 +13,6 @@
 
 #include "pxe_utils.h"
 
-#ifdef CONFIG_CMD_NET
 const char *pxe_default_paths[] = {
 #ifdef CONFIG_SYS_SOC
 #ifdef CONFIG_SYS_BOARD
@@ -331,5 +330,3 @@ U_BOOT_CMD(pxe, 4, 1, do_pxe,
           "get [" USE_IP6_CMD_PARAM "] - try to retrieve a pxe file using tftp\n"
           "pxe boot [pxefile_addr_r] [-ipv6] - boot from the pxe file at pxefile_addr_r\n"
 );
-
-#endif /* CONFIG_CMD_NET */