Re: [PATCH] s5k5baf: remove unnecessary static in s5k5baf_get_selection()

2017-07-10 Thread Andrzej Hajda
On 05.07.2017 20:07, Gustavo A. R. Silva wrote: > Remove unnecessary static on local variable rtype. > 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

[PATCH] s5k5baf: remove unnecessary static in s5k5baf_get_selection()

2017-07-05 Thread Gustavo A. R. Silva
Remove unnecessary static on local variable rtype. 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