tools: imx8image: Add missing break for CMD_DCD_SKIP
Fabio Estevam
reviewerPATCH 1/1 tools: imx8image: Add missing break for CMD_DCD_SKIP
From: Fabio Estevam <[email protected]>
The CMD_DCD_SKIP case misses a break statement.
Add it.
Fixes 254c00803b63 ("tools: imx8image: add possibility to skip dcd")
Addresses-Coverity-ID: 514648: Control flow issues (MISSING_BREAK)
Signed-off-by Fabio Estevam <[email protected]>
--- tools/imx8image.c | 1 + 1 file changed, 1 insertion(+)
tools/imx8image.c +1 -0
@@ -93,6 +93,7 @@ static void parse_cfg_cmd(image_t *param_stack, int32_t cmd, char *token,case CMD_DCD_SKIP :if (!strncmp ("true" , token,4 )) dcd_skip = true; +break ;case CMD_FUSE_VERSION : fuse_version = (uint8_t )(strtoll (token,NULL ,0 ) &0xFF );break ;
Signature · 1 line
2.34.1
Hello Fabio,
Quoted 4 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
The
CMD_DCD_SKIPcase misses a break statement.
Quoted 8 lines
Add it.
Fixes 254c00803b63 ("tools: imx8image: add possibility to skip dcd")Addresses-Coverity-ID: 514648: Control flow issues (
MISSING_BREAK)Signed-off-by Fabio Estevam <[email protected]>--- tools/imx8image.c | 1 + 1 file changed, 1 insertion(+)
Thanks!
Reviewed-by Heiko Schocher <[email protected]>
Hmm.. could we add this scan in our CI ?
bye,
Heiko
Signature · 3 lines
DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-52 Fax: +49-8142-66989-80 Email: [email protected]
Quoted 10 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
The
CMD_DCD_SKIPcase misses a break statement.Add it.
Fixes 254c00803b63 ("tools: imx8image: add possibility to skip dcd")Addresses-Coverity-ID: 514648: Control flow issues (
MISSING_BREAK)Signed-off-by Fabio Estevam <[email protected]>
Applied, thanks.