diff options
author | Ye Li <ye.li@nxp.com> | 2020-08-02 20:55:17 -0700 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2021-01-23 11:30:31 +0100 |
commit | 9dd599a7a49f5730e2056f71fddff9fcf597488f (patch) | |
tree | a906022a3ea0dd88914c230284f6329b72dcc1b9 /arch | |
parent | f89eb9be09cf35b82b9da7bf178d4f6edaa59270 (diff) | |
download | u-boot-9dd599a7a49f5730e2056f71fddff9fcf597488f.tar.gz |
nandbcb: Fix uninitialized variable
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>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-imx/cmd_nandbcb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-imx/cmd_nandbcb.c b/arch/arm/mach-imx/cmd_nandbcb.c index 44fc37695d..c01f6aea73 100644 --- 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; |