summaryrefslogtreecommitdiff
path: root/tools/stm32image.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-05-14 04:39:20 +0300
committerTom Rini <trini@konsulko.com>2021-07-16 01:42:05 +0300
commit7f0f4e1825d1cbc64f6f8cba17f6deb7282acb2b (patch)
tree06b82866e5d41cac75afa52b7799ae4c0e3fa47b /tools/stm32image.c
parentff0494c120be86bb442718f46eac06654d67a5bb (diff)
downloadu-boot-7f0f4e1825d1cbc64f6f8cba17f6deb7282acb2b.tar.xz
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>
Diffstat (limited to 'tools/stm32image.c')
0 files changed, 0 insertions, 0 deletions