Julia Lawall
cea9c8d344
ata: 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 >
Acked-by: Linus Walleij <linus.walleij@linaro.org >
Signed-off-by: Tejun Heo <tj@kernel.org >
2017-08-02 08:11:53 -07:00
..
2017-05-16 11:25:59 -04:00
2017-06-22 16:13:00 -04:00
2015-06-10 11:15:17 +09:00
2017-01-31 20:41:52 +05:30
2017-03-24 11:40:03 -04:00
2017-01-15 18:51:12 -05:00
2016-02-18 12:41:17 -05:00
2017-03-06 15:40:59 -05:00
2016-04-01 10:30:30 -04:00
2017-06-02 09:49:33 -04:00
2016-06-15 14:26:41 -04:00
2016-08-10 12:16:49 -04:00
2015-01-28 18:45:23 -05:00
2015-01-28 18:45:23 -05:00
2017-01-06 11:39:14 -05:00
2017-07-06 09:41:58 -07:00
2017-06-22 16:12:59 -04:00
2014-05-09 22:37:49 -04:00
2017-05-16 11:25:59 -04:00
2017-06-12 12:02:51 -04:00
2017-05-16 11:23:29 -04:00
2017-06-22 16:12:59 -04:00
2014-04-01 12:48:54 -07:00
2017-07-06 09:41:58 -07:00
2017-06-05 15:29:21 -04:00
2015-07-14 17:46:38 -04:00
2017-06-29 10:21:15 -04:00
2017-05-16 11:25:59 -04:00
2016-05-09 12:36:46 -04:00
2017-03-06 15:24:48 -05:00
2017-06-28 01:52:32 +02:00
2017-06-05 15:29:21 -04:00
2017-06-12 12:02:51 -04:00
2014-05-09 22:37:49 -04:00
2014-05-09 22:37:49 -04:00
2014-05-09 22:37:49 -04:00
2016-06-28 12:49:40 -04:00
2014-05-09 22:37:49 -04:00
2014-10-20 16:20:17 +02:00
2017-03-27 13:52:00 -04:00
2015-04-08 10:55:05 -04:00
2017-05-30 11:54:36 -04:00
2017-03-30 16:13:04 +05:30
2014-05-09 22:37:49 -04:00
2014-05-09 22:37:49 -04:00
2015-04-08 10:55:05 -04:00
2015-02-03 07:04:44 -05:00
2014-05-09 22:37:49 -04:00
2014-05-09 22:37:49 -04:00
2014-05-09 22:37:49 -04:00
2014-05-09 22:37:49 -04:00
2017-05-30 11:54:36 -04:00
2017-02-21 17:21:32 -08:00
2017-06-21 18:06:18 -04:00
2014-02-13 16:40:56 -05:00
2015-04-08 10:55:05 -04:00
2014-02-13 16:40:56 -05:00
2016-07-12 11:02:05 -04:00
2016-04-15 16:53:14 -04:00
2016-11-09 11:48:58 -05:00
2015-03-18 22:39:17 +01:00
2015-10-15 10:58:53 -04:00
2014-05-09 22:37:49 -04:00
2017-01-10 11:11:17 -05:00
2015-08-24 15:27:11 -05:00
2017-01-10 11:11:17 -05:00
2017-03-06 15:18:01 -05:00
2016-05-27 11:27:23 -04:00
2017-03-06 15:18:01 -05:00
2014-05-09 22:37:49 -04:00
2014-05-09 22:37:49 -04:00
2016-08-30 11:59:47 -04:00
2014-05-09 22:37:49 -04:00
2014-05-09 22:37:49 -04:00
2017-06-19 14:03:04 -04:00
2017-03-06 15:18:01 -05:00
2014-05-09 22:37:49 -04:00
2014-05-09 22:37:49 -04:00
2014-05-09 22:37:49 -04:00
2014-10-20 16:20:17 +02:00
2017-01-10 11:11:17 -05:00
2014-05-09 22:37:49 -04:00
2017-05-16 11:25:59 -04:00
2014-05-09 22:37:49 -04:00
2015-01-28 18:45:23 -05:00
2015-09-10 17:02:04 -04:00
2014-05-09 22:37:49 -04:00
2017-05-30 11:54:37 -04:00
2017-06-12 14:06:34 -04:00
2014-05-09 22:37:49 -04:00
2017-05-30 11:54:37 -04:00
2014-05-09 22:37:49 -04:00
2017-06-12 14:06:34 -04:00
2014-10-07 17:10:14 -04:00
2015-04-08 10:55:05 -04:00
2014-05-09 22:37:49 -04:00
2014-05-09 22:37:49 -04:00
2014-05-09 22:37:49 -04:00
2014-05-09 22:37:49 -04:00
2017-05-16 11:25:59 -04:00
2017-05-30 11:54:37 -04:00
2017-05-30 11:54:37 -04:00
2017-08-02 08:11:53 -07:00
2017-06-12 12:02:51 -04:00
2016-05-27 15:26:11 -07:00
2017-06-12 14:06:34 -04:00
2017-05-24 10:56:32 -04:00
2017-05-16 11:25:59 -04:00
2017-05-16 11:25:59 -04:00
2017-05-16 11:25:59 -04:00
2017-05-16 11:25:59 -04:00
2017-07-06 09:41:58 -07:00
2015-04-08 10:55:05 -04:00
2017-05-16 11:25:59 -04:00
2017-05-16 11:25:59 -04:00
2017-07-18 18:02:36 -04:00
2017-05-16 11:25:59 -04:00
2017-05-16 11:25:59 -04:00
2017-06-26 16:54:53 -04:00
2017-05-16 11:25:59 -04:00