Re: [PATCH] drivers: power: supply: Compress return logic into one line.

2017-01-19 Thread Gustavo A. R. Silva
Hey hello, Quoting Sebastian Reichel : Hi, On Wed, Jan 11, 2017 at 08:29:35PM -0600, Gustavo A. R. Silva wrote: Simplify return logic to avoid unnecessary variable assignments. These issues were detected using Coccinelle and the following semantic patch: @@ local idexpression ret; express

Re: [PATCH] drivers: power: supply: Compress return logic into one line.

2017-01-19 Thread Gustavo A. R. Silva
Hey hello, Quoting Sebastian Reichel : Hi, On Wed, Jan 11, 2017 at 08:45:57PM -0600, Gustavo A. R. Silva wrote: Simplify return logic to avoid unnecessary variable assignments. These issues were detected using Coccinelle and the following semantic patch: @@ local idexpression ret; express

Re: [PATCH] drivers: power: supply: Compress return logic into one line.

2017-01-16 Thread Sebastian Reichel
Hi, On Wed, Jan 11, 2017 at 08:45:57PM -0600, Gustavo A. R. Silva wrote: > Simplify return logic to avoid unnecessary variable assignments. > These issues were detected using Coccinelle and the following semantic patch: > > @@ > local idexpression ret; > expression e; > @@ > > -ret = > +return >

Re: [PATCH] drivers: power: supply: Compress return logic into one line.

2017-01-16 Thread Sebastian Reichel
Hi, On Wed, Jan 11, 2017 at 08:29:35PM -0600, Gustavo A. R. Silva wrote: > Simplify return logic to avoid unnecessary variable assignments. > These issues were detected using Coccinelle and the following semantic patch: > > @@ > local idexpression ret; > expression e; > @@ > > -ret = > +return >

[PATCH] drivers: power: supply: Compress return logic into one line.

2017-01-11 Thread Gustavo A. R. Silva
Simplify return logic to avoid unnecessary variable assignments. These issues were detected using Coccinelle and the following semantic patch: @@ local idexpression ret; expression e; @@ -ret = +return e; -return ret; Signed-off-by: Gustavo A. R. Silva --- drivers/power/supply/pcf50633-ch

[PATCH] drivers: power: supply: Compress return logic into one line.

2017-01-11 Thread Gustavo A. R. Silva
Simplify return logic to avoid unnecessary variable assignments. These issues were detected using Coccinelle and the following semantic patch: @@ local idexpression ret; expression e; @@ -ret = +return e; -return ret; Signed-off-by: Gustavo A. R. Silva --- drivers/power/supply/ab8500_btem