diff options
author | Simon Glass <sjg@chromium.org> | 2020-08-01 19:30:39 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-08-05 15:18:34 +0300 |
commit | 7b27e0fe13d8d44da6cd357a69668a726b852502 (patch) | |
tree | 8abedb1958a51367a9a08922eea3d33cfb6035f4 /tools/env | |
parent | d9cd4d2a8d429068a6a5061a33459ae3ae113ef8 (diff) | |
download | u-boot-7b27e0fe13d8d44da6cd357a69668a726b852502.tar.xz |
tools: env: Avoid an uninited warning with was_locked
Set this variable to 0 to avoid a warning about an unused variable. This
happens on gcc 7.5.0 for me.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/env')
-rw-r--r-- | tools/env/fw_env.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c index ccbeb5552b..66cb9d2a25 100644 --- a/tools/env/fw_env.c +++ b/tools/env/fw_env.c @@ -995,7 +995,7 @@ static int flash_write_buf(int dev, int fd, void *buf, size_t count) of the data */ loff_t blockstart; /* running start of the current block - MEMGETBADBLOCK needs 64 bits */ - int was_locked; /* flash lock flag */ + int was_locked = 0; /* flash lock flag */ int rc; /* |