]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Correct SPL uses of CMD_TFTPPUT
authorSimon Glass <sjg@chromium.org>
Sun, 5 Feb 2023 22:36:45 +0000 (15:36 -0700)
committerTom Rini <trini@konsulko.com>
Thu, 9 Feb 2023 21:32:26 +0000 (16:32 -0500)
This converts 3 usages of this option to the non-SPL form, since there is
no SPL_CMD_TFTPPUT defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
cmd/net.c

index 4227321871c1d1d3c286620a81ba045c75451a52..d5e20843ddafa4d46b57a55f50855b1018b87c3c 100644 (file)
--- a/cmd/net.c
+++ b/cmd/net.c
@@ -280,7 +280,7 @@ static int parse_args(enum proto_t proto, int argc, char *const argv[])
 
        switch (argc) {
        case 1:
-               if (CONFIG_IS_ENABLED(CMD_TFTPPUT) && proto == TFTPPUT)
+               if (IS_ENABLED(CONFIG_CMD_TFTPPUT) && proto == TFTPPUT)
                        return 1;
 
                /* refresh bootfile name from env */
@@ -289,7 +289,7 @@ static int parse_args(enum proto_t proto, int argc, char *const argv[])
                break;
 
        case 2:
-               if (CONFIG_IS_ENABLED(CMD_TFTPPUT) && proto == TFTPPUT)
+               if (IS_ENABLED(CONFIG_CMD_TFTPPUT) && proto == TFTPPUT)
                        return 1;
                /*
                 * Only one arg - accept two forms:
@@ -311,7 +311,7 @@ static int parse_args(enum proto_t proto, int argc, char *const argv[])
                break;
 
        case 3:
-               if (CONFIG_IS_ENABLED(CMD_TFTPPUT) && proto == TFTPPUT) {
+               if (IS_ENABLED(CONFIG_CMD_TFTPPUT) && proto == TFTPPUT) {
                        if (parse_addr_size(argv))
                                return 1;
                } else {