Simon Glass 7f0f4e1825 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>
2021-07-15 18:42:05 -04:00
..
2019-12-06 16:44:20 -05:00
2019-07-29 00:20:31 +02:00
2021-01-13 02:38:00 +01:00
2020-10-09 12:02:26 -04:00
2019-11-04 18:15:32 -07:00