From: Julia Lawall Date: Sun, 23 Aug 2015 00:11:14 +0000 (+0200) Subject: net: davinci_emac: fix error return code X-Git-Tag: omap-for-v4.3/fixes-rc1~110^2~98 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ef53ebfa9ff5b205604fc781868765e00ae875f;p=pandora-kernel.git net: davinci_emac: fix error return code 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(...) { ... when != ret = e2 when forall return ret; } // Signed-off-by: Julia Lawall Signed-off-by: David S. Miller --- Reading git-diff-tree failed