Skip to content
Commit e76e85c9 authored by Tom Rini's avatar Tom Rini Committed by Lokesh Vutla
Browse files

board: ti: common: Fix pointer-bool-conversion warnings



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@ti.com>
Signed-off-by: default avatarTom Rini <trini@konsulko.com>
Reviewed-by: default avatarLokesh Vutla <lokeshvutla@ti.com>
parent 5b9ee0fc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment