Re: [PATCH 1/5] avr32: fix error return code

2014-08-07 Thread Hans-Christian Egtvedt
Around Thu 07 Aug 2014 14:49:05 +0200 or thereabout, Julia Lawall wrote: > From: Julia Lawall > > Convert a zero return value on error to a negative one, as returned > elsewhere in the function. Excellent find, added to this for-linus branch. > A simplified version of the semantic match that fi

[PATCH 1/5] avr32: fix error return code

2014-08-07 Thread Julia Lawall
From: Julia Lawall Convert a zero return value on error to a negative one, as returned elsewhere in the function. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @@ identifier ret; expression e1,e2; @@ ( if (\(ret < 0\|ret != 0\