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

2020-06-18 Thread Lokesh Vutla
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 a

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

2020-06-04 Thread Lokesh Vutla
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 a

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

2020-06-04 Thread Tom Rini
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 previou