On Sat, 20 Jun 2015, Joachim Eastwood wrote:
> On 20 June 2015 at 21:07, Julia Lawall wrote:
> > Remove initialization of a variable that is immediately reassigned.
> >
> > The semantic patch that makes this change is as follows:
> > (http://coccinelle.lip6.fr/)
> >
> > //
> > @@
> > type T;
> >
On 20 June 2015 at 21:07, Julia Lawall wrote:
> Remove initialization of a variable that is immediately reassigned.
>
> The semantic patch that makes this change is as follows:
> (http://coccinelle.lip6.fr/)
>
> //
> @@
> type T;
> identifier x;
> constant C;
> expression e;
> @@
>
> T x
> - = C
Remove initialization of a variable that is immediately reassigned.
The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)
//
@@
type T;
identifier x;
constant C;
expression e;
@@
T x
- = C
;
x = e;
//
Signed-off-by: Julia Lawall
---
drivers/staging/lustre/l