projects
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f89eb9b
)
nandbcb: Fix uninitialized variable
author
Ye Li
<ye.li@nxp.com>
Mon, 3 Aug 2020 03:55:17 +0000
(20:55 -0700)
committer
Stefano Babic
<sbabic@denx.de>
Sat, 23 Jan 2021 10:30:31 +0000
(11:30 +0100)
Fix Coverity Issue
9006654
. In write_fcb, use of an uninitialized
variable "ret".
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
arch/arm/mach-imx/cmd_nandbcb.c
patch
|
blob
|
history
diff --git
a/arch/arm/mach-imx/cmd_nandbcb.c
b/arch/arm/mach-imx/cmd_nandbcb.c
index
44fc376
..
c01f6ae
100644
(file)
--- a/
arch/arm/mach-imx/cmd_nandbcb.c
+++ b/
arch/arm/mach-imx/cmd_nandbcb.c
@@
-563,7
+563,7
@@
static int write_fcb(struct boot_config *boot_cfg, struct fcb_block *fcb)
{
struct mtd_info *mtd;
void *fcb_raw_page = NULL;
- int i, ret;
+ int i, ret
= 0
;
loff_t off;
size_t size;