Re: [PATCH 03/11] mtd: physmap_of: Drop unnecessary static

2017-08-17 Thread Boris Brezillon
Le Sat, 15 Jul 2017 22:07:38 +0200, Julia Lawall a écrit : > 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/) > > // > @bad

Re: [PATCH 03/11] mtd: physmap_of: Drop unnecessary static

2017-07-17 Thread Boris Brezillon
Le Sat, 15 Jul 2017 22:07:38 +0200, Julia Lawall a écrit : > 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/) > > // > @bad

[PATCH 03/11] mtd: physmap_of: Drop unnecessary static

2017-07-15 Thread Julia Lawall
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/) // @bad exists@ position p; identifier x; type T; @@ static T x@p; ... x = <+...x...