arm: cmd_stm32prog: Fix the CONFIG_IS_ENABLED() usage
authorBin Meng <bmeng.cn@gmail.com>
Wed, 8 Jul 2020 07:19:22 +0000 (00:19 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Thu, 9 Jul 2020 04:33:24 +0000 (12:33 +0800)
Add parentheses around CONFIG_IS_ENABLED() in the if statement, to
fix potential build failures.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Patrick Delaunay <patrick.delaunay@st.com>
arch/arm/mach-stm32mp/cmd_stm32prog/cmd_stm32prog.c

index 0722e4a..cbf0120 100644 (file)
@@ -147,7 +147,7 @@ static int do_stm32prog(struct cmd_tbl *cmdtp, int flag, int argc,
                /* Try bootm for legacy and FIT format image */
                if (genimg_get_format((void *)uimage) != IMAGE_FORMAT_INVALID)
                        do_bootm(cmdtp, 0, 4, bootm_argv);
-               else if CONFIG_IS_ENABLED(CMD_BOOTZ)
+               else if (CONFIG_IS_ENABLED(CMD_BOOTZ))
                        do_bootz(cmdtp, 0, 4, bootm_argv);
        }