RE: [PATCH 10/14] drivers/spi/spi-ep93xx.c: fix error return code

2012-08-22 Thread H Hartley Sweeten
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

[PATCH 10/14] drivers/spi/spi-ep93xx.c: fix error return code

2012-08-19 Thread Julia Lawall
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