mirror of https://gitee.com/openkylin/linux.git
4aafe9c603
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> |
||
---|---|---|
.. | ||
Makefile | ||
clk-apbc.c | ||
clk-apmu.c | ||
clk-frac.c | ||
clk-gate.c | ||
clk-mix.c | ||
clk-mmp2.c | ||
clk-of-mmp2.c | ||
clk-of-pxa168.c | ||
clk-of-pxa910.c | ||
clk-of-pxa1928.c | ||
clk-pxa168.c | ||
clk-pxa910.c | ||
clk.c | ||
clk.h | ||
reset.c | ||
reset.h |