kernel_optimize_test/drivers/clk/mmp
Julia Lawall 4aafe9c603 clk: mmp: Drop unnecessary static
Drop static on a local variable, when the variable is initialized before
any possible use.  Thus, the static has no benefit.

The semantic patch that fixes this problem is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@bad exists@
position p;
identifier x;
type T;
@@
static T x@p;
...
x = <+...x...+>

@@
identifier x;
expression e;
type T;
position p != bad.p;
@@
-static
 T x@p;
 ... when != x
     when strict
?x = e;
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
2017-07-17 18:31:06 -07:00
..
clk-apbc.c clk: mmp: Remove clk.h include 2015-07-20 10:53:12 -07:00
clk-apmu.c clk: mmp: Remove clk.h include 2015-07-20 10:53:12 -07:00
clk-frac.c clk: mmp: fix sparse non static symbol warning 2014-12-11 12:14:09 -08:00
clk-gate.c clk: mmp: Convert to clk_hw based provider APIs 2015-08-24 16:48:49 -07:00
clk-mix.c clk: mmp: Convert to clk_hw based provider APIs 2015-08-24 16:48:49 -07:00
clk-mmp2.c clk: mmp: add missing header dependencies 2016-09-14 11:16:59 -07:00
clk-of-mmp2.c clk:mmp:clk-of-mmp2: Free memory and Unmap region obtained by kzalloc and of_iomap 2016-12-08 16:29:39 -08:00
clk-of-pxa168.c clk: mmp: pxa168: fix return value check in pxa168_clk_init() 2016-11-01 17:41:20 -07:00
clk-of-pxa910.c clk:mmp:clk-of-pxa910: Free memory and Unmap region obtained by kzmalloc and of_iomap 2016-12-08 16:29:38 -08:00
clk-of-pxa1928.c clk: mmp: clk-of-pxa1928: Free memory obtained by kzalloc 2016-12-08 16:29:37 -08:00
clk-pxa168.c clk: mmp: Remove CLK_IS_ROOT 2016-04-15 16:50:01 -07:00
clk-pxa910.c clk: mmp: Remove CLK_IS_ROOT 2016-04-15 16:50:01 -07:00
clk.c clk: mmp: Drop unnecessary static 2017-07-17 18:31:06 -07:00
clk.h clk: mmp: add basic support functions for DT support 2014-11-12 16:34:05 -08:00
Makefile clk: mmp: add PXA1928 clock support 2015-05-15 12:31:45 -07:00
reset.c clk: mmp: Make reset_control_ops const 2016-03-29 16:29:34 -07:00
reset.h clk: mmp: add reset support 2014-11-12 16:34:10 -08:00