X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=cmd%2Fethsw.c;h=473324f878287f84395bc8b4066c02e25cfabb0a;hb=103c45fb0daab924308046454b4aaad4a09237c4;hp=491cb8eac385ed8ecf44ab6a2f46ab6bf57a59f9;hpb=82d72a1b9967cff4908f22c57536c3660f794401;p=u-boot diff --git a/cmd/ethsw.c b/cmd/ethsw.c index 491cb8eac3..473324f878 100644 --- a/cmd/ethsw.c +++ b/cmd/ethsw.c @@ -1,13 +1,13 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Copyright 2015 Freescale Semiconductor, Inc. * - * SPDX-License-Identifier: GPL-2.0+ - * * Ethernet Switch commands */ #include #include +#include #include #include #include @@ -915,7 +915,7 @@ static void cmd_keywords_opt_check(const struct ethsw_command_def *parsed_cmd, * check if our command's optional keywords match the optional * keywords of an available command */ - for (i = 0; i < ARRAY_SIZE(ethsw_cmd_def); i++) { + for (i = 0; i < ARRAY_SIZE(cmd_opt_def); i++) { keyw_opt_matched = 0; cmd_keyw_p = &parsed_cmd->cmd_to_keywords[keyw_opt_matched]; cmd_keyw_opt_p = &cmd_opt_def[i].cmd_keyword[keyw_opt_matched];