commit | 7a1745cf74fa3fdf1f0084ecac454cce4e31583a | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Thu May 13 19:39:20 2021 -0600 |
committer | Tom Rini <trini@konsulko.com> | Thu Jul 15 18:42:05 2021 -0400 |
tree | 06b82866e5d41cac75afa52b7799ae4c0e3fa47b | |
parent | 8e2345ec5c0f945812f43265d6bdb5d9c7bca6e6 [diff] |
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>