Re: [PATCH 9/13] md: make return of 0 explicit

2014-05-19 Thread NeilBrown
On Mon, 19 May 2014 06:31:11 +0200 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://cocci

[PATCH 9/13] md: 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; p