From 574b9502152ae610808a0e56d4c95665e388397c Mon Sep 17 00:00:00 2001 From: Han Gao Date: Mon, 24 Jul 2023 05:57:11 +0800 Subject: [PATCH] fix: maybe-uninitialized resovled Signed-off-by: Han Gao --- lib/utils/reset/fdt_reset_thead.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils/reset/fdt_reset_thead.c b/lib/utils/reset/fdt_reset_thead.c index 95f8c36..c75776a 100644 --- a/lib/utils/reset/fdt_reset_thead.c +++ b/lib/utils/reset/fdt_reset_thead.c @@ -62,7 +62,7 @@ static int thead_reset_init(void *fdt, int nodeoff, void *p; const fdt64_t *val; const fdt32_t *val_w; - int len, i, cnt; + int len, i, cnt = 0; u32 t, tmp = 0; /* Prepare clone csrs */