]> git.baikalelectronics.ru Git - uboot.git/commit
tools: Avoid showing return value of clock_gettime()
authorSimon Glass <sjg@chromium.org>
Fri, 14 May 2021 01:39:20 +0000 (19:39 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 15 Jul 2021 22:42:05 +0000 (18:42 -0400)
commit07beae02e0ba53ef1b29e11c397f03a136d2564f
tree06b82866e5d41cac75afa52b7799ae4c0e3fa47b
parent4f6123c60f3369da1b6846b9bb779b3a1896b03c
tools: Avoid showing return value of clock_gettime()

This value is either 0 for success or -1 for error. Coverity reports that
"ret" is passed to a parameter that cannot be negative, pointing to the
condition 'if (ret < 0)'.

Adjust it to just check for non-zero and avoid showing -1 in the error
message, which is pointless. Perhaps these changes will molify Coverity.

Reported-by: Coverity (CID: 312956)
Signed-off-by: Simon Glass <sjg@chromium.org>
tools/image-host.c