From 4da15181080a8c3bf4480661ab79627a4b46629e Mon Sep 17 00:00:00 2001 From: Martin Kiepfer Date: Wed, 5 Jul 2023 07:35:24 +0200 Subject: [PATCH] regulator: shell: fix unitialized variable warning from SCA Static code analysis it has highlighted that a variable is beeing accessed before initializing. This is a very minor fix to resolve this potential issue. Signed-off-by: Martin Kiepfer --- drivers/regulator/regulator_shell.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/regulator_shell.c b/drivers/regulator/regulator_shell.c index ce7c262ed5c..626b74e678b 100644 --- a/drivers/regulator/regulator_shell.c +++ b/drivers/regulator/regulator_shell.c @@ -131,7 +131,7 @@ static int cmd_vlist(const struct shell *sh, size_t argc, char **argv) { const struct device *dev; unsigned int volt_cnt; - int32_t last_volt_uv; + int32_t last_volt_uv = 0; ARG_UNUSED(argc);