On Sunday, August 19, 2012 1:44 AM, Julia Lawall wrote:
From: Julia Lawall julia.law...@lip6.fr
Initialize return variable before exiting on an error path.
snip
Signed-off-by: Julia Lawall julia.law...@lip6.fr
---
drivers/spi/spi-ep93xx.c |1 +
1 file changed, 1 insertion(+)
diff
From: Julia Lawall julia.law...@lip6.fr
Initialize return variable before exiting on an error path.
A simplified version of the semantic match that finds this problem is as
follows: (http://coccinelle.lip6.fr/)
// smpl
(
if@p1 (\(ret 0\|ret != 0\))
{ ... return ret; }
|
ret@p1 = 0
)
... when