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:
parent
8fc22e14a9
commit
4da1518108
1 changed files with 1 additions and 1 deletions
|
@ -131,7 +131,7 @@ static int cmd_vlist(const struct shell *sh, size_t argc, char **argv)
|
||||||
{
|
{
|
||||||
const struct device *dev;
|
const struct device *dev;
|
||||||
unsigned int volt_cnt;
|
unsigned int volt_cnt;
|
||||||
int32_t last_volt_uv;
|
int32_t last_volt_uv = 0;
|
||||||
|
|
||||||
ARG_UNUSED(argc);
|
ARG_UNUSED(argc);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue