Re: [PATCH 1/13] libertas: make return of 0 explicit

2014-05-19 Thread Julia Lawall
On Mon, 19 May 2014, Sergei Shtylyov wrote: > Hello. > > On 19-05-2014 8:31, Julia Lawall wrote: > > > From: Julia Lawall > > > Delete unnecessary local variable whose value is always 0 and that hides > > the fact that the result is always 0. > > > A simplified version of the semantic patch

Re: [PATCH 1/13] libertas: make return of 0 explicit

2014-05-19 Thread Julia Lawall
On Mon, 19 May 2014, Sergei Shtylyov wrote: > Hello. > > On 19-05-2014 8:31, Julia Lawall wrote: > > > From: Julia Lawall > > > Delete unnecessary local variable whose value is always 0 and that hides > > the fact that the result is always 0. > > > A simplified version of the semantic patch

Re: [PATCH 1/13] libertas: make return of 0 explicit

2014-05-19 Thread Dan Williams
On Mon, 2014-05-19 at 16:45 +0400, Sergei Shtylyov wrote: > Hello. > > On 19-05-2014 8:31, Julia Lawall wrote: > > > From: Julia Lawall > > > Delete unnecessary local variable whose value is always 0 and that hides > > the fact that the result is always 0. > > > A simplified version of the

Re: [PATCH 1/13] libertas: make return of 0 explicit

2014-05-19 Thread Sergei Shtylyov
Hello. On 19-05-2014 8:31, Julia Lawall wrote: From: Julia Lawall Delete unnecessary local variable whose value is always 0 and that hides the fact that the result is always 0. A simplified version of the semantic patch that fixes this problem is as follows: (http://coccinelle.lip6.fr/)

Re: [PATCH 1/13] libertas: make return of 0 explicit

2014-05-19 Thread walter harms
Am 19.05.2014 06:31, schrieb Julia Lawall: > From: Julia Lawall > > Delete unnecessary local variable whose value is always 0 and that hides > the fact that the result is always 0. > > A simplified version of the semantic patch that fixes this problem is as > follows:

Re: [PATCH 1/13] libertas: make return of 0 explicit

2014-05-19 Thread Julia Lawall
On Mon, 19 May 2014, Sergei Shtylyov wrote: Hello. On 19-05-2014 8:31, Julia Lawall wrote: From: Julia Lawall julia.law...@lip6.fr Delete unnecessary local variable whose value is always 0 and that hides the fact that the result is always 0. A simplified version of the semantic

Re: [PATCH 1/13] libertas: make return of 0 explicit

2014-05-19 Thread Julia Lawall
On Mon, 19 May 2014, Sergei Shtylyov wrote: Hello. On 19-05-2014 8:31, Julia Lawall wrote: From: Julia Lawall julia.law...@lip6.fr Delete unnecessary local variable whose value is always 0 and that hides the fact that the result is always 0. A simplified version of the semantic

Re: [PATCH 1/13] libertas: make return of 0 explicit

2014-05-19 Thread walter harms
Am 19.05.2014 06:31, schrieb Julia Lawall: From: Julia Lawall julia.law...@lip6.fr Delete unnecessary local variable whose value is always 0 and that hides the fact that the result is always 0. A simplified version of the semantic patch that fixes this problem is as follows:

Re: [PATCH 1/13] libertas: make return of 0 explicit

2014-05-19 Thread Sergei Shtylyov
Hello. On 19-05-2014 8:31, Julia Lawall wrote: From: Julia Lawall julia.law...@lip6.fr Delete unnecessary local variable whose value is always 0 and that hides the fact that the result is always 0. A simplified version of the semantic patch that fixes this problem is as follows:

Re: [PATCH 1/13] libertas: make return of 0 explicit

2014-05-19 Thread Dan Williams
On Mon, 2014-05-19 at 16:45 +0400, Sergei Shtylyov wrote: Hello. On 19-05-2014 8:31, Julia Lawall wrote: From: Julia Lawall julia.law...@lip6.fr Delete unnecessary local variable whose value is always 0 and that hides the fact that the result is always 0. A simplified version of

[PATCH 1/13] libertas: make return of 0 explicit

2014-05-18 Thread Julia Lawall
From: Julia Lawall Delete unnecessary local variable whose value is always 0 and that hides the fact that the result is always 0. A simplified version of the semantic patch that fixes this problem is as follows: (http://coccinelle.lip6.fr/) // @r exists@ local idexpression ret; expression e;

[PATCH 1/13] libertas: make return of 0 explicit

2014-05-18 Thread Julia Lawall
From: Julia Lawall julia.law...@lip6.fr Delete unnecessary local variable whose value is always 0 and that hides the fact that the result is always 0. A simplified version of the semantic patch that fixes this problem is as follows: (http://coccinelle.lip6.fr/) // smpl @r exists@ local