]> git.baikalelectronics.ru Git - kernel.git/commit
staging: tidspbridge: adjust error return code (bugfix)
authorJulia Lawall <Julia.Lawall@lip6.fr>
Mon, 13 Jan 2014 16:12:09 +0000 (17:12 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 Jan 2014 23:24:18 +0000 (15:24 -0800)
commit22ac5b091479d8c6f61a5b863a9e6411653a8eb5
treee4f7aa3a5f48f130385e0529d108f20f31e992c8
parent5370facb87d02cbc9a5f301e2008e935614fc9a1
staging: tidspbridge: adjust error return code (bugfix)

The variable status is initialized to either 0 or an error code.  Return
status to propagate the error value.

A simplified version of the semantic patch that fixes this problem is as
follows: (http://coccinelle.lip6.fr/)

// <smpl>
@@
type T;
identifier i;
constant c;
@@

-T i;
<... when != i
-i = c;
...>
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/tidspbridge/rmgr/drv_interface.c