Re: [PATCH -next v2] backlight: qcom-wled: fix unsigned comparison to zero

2020-01-23 Thread kgunda
On 2020-01-22 16:25, Daniel Thompson wrote: On Wed, Jan 22, 2020 at 09:32:40AM +0800, Chen Zhou wrote: Fixes coccicheck warning: ./drivers/video/backlight/qcom-wled.c:1104:5-15: WARNING: Unsigned expression compared with zero: string_len > 0 The unsigned variable string_len is assigned

Re: [PATCH -next v2] backlight: qcom-wled: fix unsigned comparison to zero

2020-01-22 Thread Lee Jones
On Wed, 22 Jan 2020, Chen Zhou wrote: > Fixes coccicheck warning: > ./drivers/video/backlight/qcom-wled.c:1104:5-15: > WARNING: Unsigned expression compared with zero: string_len > 0 > > The unsigned variable string_len is assigned a return value from the call > to of_property_count_elems_o

Re: [PATCH -next v2] backlight: qcom-wled: fix unsigned comparison to zero

2020-01-22 Thread Daniel Thompson
On Wed, Jan 22, 2020 at 09:32:40AM +0800, Chen Zhou wrote: > Fixes coccicheck warning: > ./drivers/video/backlight/qcom-wled.c:1104:5-15: > WARNING: Unsigned expression compared with zero: string_len > 0 > > The unsigned variable string_len is assigned a return value from the call > to of_pr

[PATCH -next v2] backlight: qcom-wled: fix unsigned comparison to zero

2020-01-22 Thread Chen Zhou
Fixes coccicheck warning: ./drivers/video/backlight/qcom-wled.c:1104:5-15: WARNING: Unsigned expression compared with zero: string_len > 0 The unsigned variable string_len is assigned a return value from the call to of_property_count_elems_of_size(), which may return negative error code.