Re: [PATCH] mfd: max8925-i2c: remove unnecessary static in max8925_probe()

2017-07-17 Thread Lee Jones
On Tue, 04 Jul 2017, Gustavo A. R. Silva wrote: > Remove unnecessary static on local variable _chip_. > Such variable is initialized before being used, > on every execution path throughout the function. > The static has no benefit and, removing it reduces > the code size. > > This issue was detec

[PATCH] mfd: max8925-i2c: remove unnecessary static in max8925_probe()

2017-07-04 Thread Gustavo A. R. Silva
Remove unnecessary static on local variable _chip_. Such variable is initialized before being used, on every execution path throughout the function. The static has no benefit and, removing it reduces the code size. This issue was detected using Coccinelle and the following semantic patch: @bad ex