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 <mrmarteng@teleschirm.org>
This commit is contained in:
Martin Kiepfer 2023-07-05 07:35:24 +02:00 committed by Carles Cufí
commit 4da1518108

View file

@ -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);