diff options
author | Tom Rini <trini@konsulko.com> | 2021-01-23 09:55:35 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-01-23 09:55:35 -0500 |
commit | 757cec3a0314e88ca90bcc43589a065b7f76a57e (patch) | |
tree | 2cb185c23e27ea7b8586b165c3455bf747d53ed8 /tools/env/fw_env.c | |
parent | b577bc1c5fac9b15a075459a9841ef9ede1f1b80 (diff) | |
parent | 09779488a924dbc4eb3b4ae145632f22b7f5a36c (diff) |
Merge branch '2021-01-22-tool-updates'
- Assorted updates to the tools/ code
Diffstat (limited to 'tools/env/fw_env.c')
-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 66cb9d2a25e..2a61a5d6f04 100644 --- a/tools/env/fw_env.c +++ b/tools/env/fw_env.c @@ -1208,7 +1208,7 @@ static int flash_write(int fd_current, int fd_target, int dev_target) if (IS_UBI(dev_target)) { if (ubi_update_start(fd_target, CUR_ENVSIZE) < 0) - return 0; + return -1; return ubi_write(fd_target, environment.image, CUR_ENVSIZE); } |