Re: [PATCH 2/6] drivers/cpufreq/pcc-cpufreq.c: fix error return code

2012-08-05 Thread Rafael J. Wysocki
On Sunday, August 05, 2012, Julia Lawall wrote: > From: Julia Lawall > > Convert a 0 error return code 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/) > > // > @@ >

[PATCH 2/6] drivers/cpufreq/pcc-cpufreq.c: fix error return code

2012-08-05 Thread Julia Lawall
From: Julia Lawall Convert a 0 error return code 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 e,e1,e2,e3,e4,x; @@ ( if (\(ret != 0\|ret