diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2014-01-13 17:12:09 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-01-13 15:24:18 -0800 |
commit | ff11917d4f1b03d19dcc3c5f3ad813e428c21f40 (patch) | |
tree | e4f7aa3a5f48f130385e0529d108f20f31e992c8 /drivers/staging/tidspbridge | |
parent | f83471878c318669c2f5a933895241ad21d76661 (diff) | |
download | op-kernel-dev-ff11917d4f1b03d19dcc3c5f3ad813e428c21f40.zip op-kernel-dev-ff11917d4f1b03d19dcc3c5f3ad813e428c21f40.tar.gz |
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>
Diffstat (limited to 'drivers/staging/tidspbridge')
-rw-r--r-- | drivers/staging/tidspbridge/rmgr/drv_interface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/tidspbridge/rmgr/drv_interface.c b/drivers/staging/tidspbridge/rmgr/drv_interface.c index cafca46..74d31da 100644 --- a/drivers/staging/tidspbridge/rmgr/drv_interface.c +++ b/drivers/staging/tidspbridge/rmgr/drv_interface.c @@ -589,7 +589,7 @@ func_cont: class_destroy(bridge_class); } - return 0; + return status; } #ifdef CONFIG_PM |