diff options
author | Tom Rini <trini@konsulko.com> | 2021-07-16 09:15:59 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-07-16 09:15:59 -0400 |
commit | c39946a2e2d062025c9fc8b34587dfdd45fd8703 (patch) | |
tree | 30326b7ad7ab94a6c936506636cf93d63b300384 /tools/image-host.c | |
parent | d0dab9336db08bf562dd7ded4a417efd8570cee7 (diff) | |
parent | 92cf458f8ad9410dedbedd41d048d26620ce5f12 (diff) |
Merge branch '2021-07-15-assorted-fixes'
- Large number of Coverity reported issues addressed
- m41t62 bugfix
- Support more Android image compression formats
- FIT + DTO bugfix
Diffstat (limited to 'tools/image-host.c')
-rw-r--r-- | tools/image-host.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/image-host.c b/tools/image-host.c index 73095461a79..d3a882ec291 100644 --- a/tools/image-host.c +++ b/tools/image-host.c @@ -329,7 +329,7 @@ static int get_random_data(void *data, int size) { unsigned char *tmp = data; struct timespec date; - int i, ret = 0; + int i, ret; if (!tmp) { printf("%s: pointer data is NULL\n", __func__); @@ -338,9 +338,9 @@ static int get_random_data(void *data, int size) } ret = clock_gettime(CLOCK_MONOTONIC, &date); - if (ret < 0) { - printf("%s: clock_gettime has failed (err=%d, str=%s)\n", - __func__, ret, strerror(errno)); + if (ret) { + printf("%s: clock_gettime has failed (%s)\n", __func__, + strerror(errno)); goto out; } |