Re: [PATCH 03/11] net: davinci_emac: fix error return code

2015-08-25 Thread David Miller
From: Julia Lawall Date: Sun, 23 Aug 2015 02:11:14 +0200 > Propagate error code on failure. > > A simplified version of the semantic match that finds this problem is as > follows: (http://coccinelle.lip6.fr/) ... > Signed-off-by: Julia Lawall Applied. -- To unsubscribe from this list: send th

[PATCH 03/11] net: davinci_emac: fix error return code

2015-08-22 Thread Julia Lawall
Propagate error code on failure. 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\)) { ... return ret; } | ret = 0 ) ... when != ret = e1 when != &ret *if(...)