diff mbox series

[158/171] Correct SPL use of UDP_FUNCTION_FASTBOOT

Message ID 20230130151612.212732-159-sjg@chromium.org
State Changes Requested
Delegated to: Tom Rini
Headers show
Series None | expand

Commit Message

Simon Glass Jan. 30, 2023, 3:15 p.m. UTC
This converts 1 usage of this option to the non-SPL form, since there is
no SPL_UDP_FUNCTION_FASTBOOT defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 cmd/fastboot.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Mattijs Korpershoek Jan. 31, 2023, 2:58 p.m. UTC | #1
On Mon, Jan 30, 2023 at 08:15, Simon Glass <sjg@chromium.org> wrote:

> This converts 1 usage of this option to the non-SPL form, since there is
> no SPL_UDP_FUNCTION_FASTBOOT defined in Kconfig
>
> Signed-off-by: Simon Glass <sjg@chromium.org>

Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>

> ---
>
>  cmd/fastboot.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/cmd/fastboot.c b/cmd/fastboot.c
> index b94dbd54884..17c53bbe277 100644
> --- a/cmd/fastboot.c
> +++ b/cmd/fastboot.c
> @@ -21,7 +21,7 @@ static int do_fastboot_udp(int argc, char *const argv[],
>  {
>  	int err;
>  
> -	if (!CONFIG_IS_ENABLED(UDP_FUNCTION_FASTBOOT)) {
> +	if (!IS_ENABLED(CONFIG_UDP_FUNCTION_FASTBOOT)) {
>  		pr_err("Fastboot UDP not enabled\n");
>  		return CMD_RET_FAILURE;
>  	}
> -- 
> 2.39.1.456.gfc5497dd1b-goog
diff mbox series

Patch

diff --git a/cmd/fastboot.c b/cmd/fastboot.c
index b94dbd54884..17c53bbe277 100644
--- a/cmd/fastboot.c
+++ b/cmd/fastboot.c
@@ -21,7 +21,7 @@  static int do_fastboot_udp(int argc, char *const argv[],
 {
 	int err;
 
-	if (!CONFIG_IS_ENABLED(UDP_FUNCTION_FASTBOOT)) {
+	if (!IS_ENABLED(CONFIG_UDP_FUNCTION_FASTBOOT)) {
 		pr_err("Fastboot UDP not enabled\n");
 		return CMD_RET_FAILURE;
 	}