[PATCH] board: ti: common: Fix pointer-bool-conversion warnings

Lokesh Vutla lokeshvutla at ti.com
Thu Jun 18 15:51:47 CEST 2020



On 05/06/20 1:15 am, Tom Rini wrote:
> When building this code with clang-10 a number of warnings will be
> generated along the lines of:
> warning: address of array 'ep->version' will always evaluate to 'true'
> 
> Convert these checks to checking the strlen of the part of the array we
> care about.  As this array will be null terminated previously by us,
> this is safe.
> 
> Cc: Lokesh Vutla <lokeshvutla at ti.com>
> Signed-off-by: Tom Rini <trini at konsulko.com>

Applied to u-boot-ti next.

Thanks and regards,
Lokesh



More information about the U-Boot mailing list