summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYe Li <[email protected]>2020-08-02 20:55:17 -0700
committerStefano Babic <[email protected]>2021-01-23 11:30:31 +0100
commit9dd599a7a49f5730e2056f71fddff9fcf597488f (patch)
treea906022a3ea0dd88914c230284f6329b72dcc1b9
parentf89eb9be09cf35b82b9da7bf178d4f6edaa59270 (diff)
nandbcb: Fix uninitialized variable
Fix Coverity Issue 9006654. In write_fcb, use of an uninitialized variable "ret". Signed-off-by: Ye Li <[email protected]> Reviewed-by: Peng Fan <[email protected]> Signed-off-by: Peng Fan <[email protected]>
-rw-r--r--arch/arm/mach-imx/cmd_nandbcb.c2
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 44fc37695db..c01f6aea73f 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;