Skip to content

Commit 83652aa

Browse files
author
Ye Li
committed
LFU-753-2 imx8ulp_evk: Fix uninitialized variables
When calling ELE API, initialize the res variable to 0 to avoid print uninitialized value. Fix coverity issues: 37938232 and 37938230 Signed-off-by: Ye Li <[email protected]> Reviewed-by: Peng Fan <[email protected]>
1 parent a145b17 commit 83652aa

File tree

2 files changed

+2
-2
lines changed
  • arch/arm/mach-imx/imx8ulp
  • board/freescale/imx8ulp_evk

2 files changed

+2
-2
lines changed

arch/arm/mach-imx/imx8ulp/soc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1178,7 +1178,7 @@ static int disable_cpu_nodes(void *blob, u32 disabled_cores)
11781178
int ft_system_setup(void *blob, struct bd_info *bd)
11791179
{
11801180
u32 uid[4];
1181-
u32 res;
1181+
u32 res = 0;
11821182
int ret;
11831183
int nodeoff = fdt_path_offset(blob, "/soc");
11841184
/* Nibble 1st for major version

board/freescale/imx8ulp_evk/spl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ int power_init_board(void)
107107

108108
void display_ele_fw_version(void)
109109
{
110-
u32 fw_version, sha1, res;
110+
u32 fw_version, sha1, res = 0;
111111
int ret;
112112

113113
ret = ele_get_fw_version(&fw_version, &sha1, &res);

0 commit comments

Comments
 (0)