mirror of
https://github.com/torvalds/linux.git
synced 2024-11-28 15:11:31 +00:00
686913aa9f
Convert a zero return value on error 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/) // <smpl> @@ 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; } // </smpl> Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Acked-by: Hans-Christian Egtvedt <egtvedt@samfundet.no> |
||
---|---|---|
.. | ||
boards | ||
boot | ||
configs | ||
include | ||
kernel | ||
lib | ||
mach-at32ap | ||
mm | ||
oprofile | ||
Kconfig | ||
Kconfig.debug | ||
Makefile |