Re: [PATCH v2] platform/x86: acer-wmi: refactor function has_cap

2018-08-15 Thread Andy Shevchenko
On Thu, Aug 9, 2018 at 3:44 AM, joeyli wrote: > Hi Gustavo, > > Sorry for my delay! > > On Mon, Aug 06, 2018 at 03:38:32PM -0500, Gustavo A. R. Silva wrote: >> Refactor function has_cap in order to avoid returning integer >> values, when instead it should return booleans. >> >> This code was detec

Re: [PATCH v2] platform/x86: acer-wmi: refactor function has_cap

2018-08-08 Thread joeyli
Hi Gustavo, Sorry for my delay! On Mon, Aug 06, 2018 at 03:38:32PM -0500, Gustavo A. R. Silva wrote: > Refactor function has_cap in order to avoid returning integer > values, when instead it should return booleans. > > This code was detected with the help of Coccinelle. > > Signed-off-by: Gust

[PATCH v2] platform/x86: acer-wmi: refactor function has_cap

2018-08-06 Thread Gustavo A. R. Silva
Refactor function has_cap in order to avoid returning integer values, when instead it should return booleans. This code was detected with the help of Coccinelle. Signed-off-by: Gustavo A. R. Silva --- Changes in v2: Remove parentheses and unnecessary code. Thank you all for the f