[PATCH v2 04/16] tools: Avoid showing return value of clock_gettime()

Tom Rini trini at konsulko.com
Fri Jul 16 17:51:30 CEST 2021


On Thu, May 13, 2021 at 07:39:20PM -0600, Simon Glass wrote:

> 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 at chromium.org>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210716/9a1f33ef/attachment.sig>


More information about the U-Boot mailing list