UPSTREAM: cmd/time.c: Initialize 'repeatable' variable
We cannot leave this uninitialized, set it to 0. Change-Id: Ic8f3dd4d7395921bf4269a618aaf92a717dbfe46 Reported-by: Coverity (CID: 144426) Signed-off-by: Tom Rini <trini@konsulko.com> Signed-off-by: Kever Yang <kever.yang@rock-chips.com> (cherry picked from commit 146dda391126d4f199c7692f2342efcc34b45ebd)
This commit is contained in:
parent
7f2f366160
commit
8ab67e0d6c
|
|
@ -28,7 +28,7 @@ static int do_time(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||||
{
|
{
|
||||||
ulong cycles = 0;
|
ulong cycles = 0;
|
||||||
int retval = 0;
|
int retval = 0;
|
||||||
int repeatable;
|
int repeatable = 0;
|
||||||
|
|
||||||
if (argc == 1)
|
if (argc == 1)
|
||||||
return CMD_RET_USAGE;
|
return CMD_RET_USAGE;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue