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>
This commit is contained in:
Julia Lawall 2014-01-13 17:12:09 +01:00 committed by Greg Kroah-Hartman
parent f83471878c
commit ff11917d4f
1 changed files with 1 additions and 1 deletions

View File

@ -589,7 +589,7 @@ static int omap34_xx_bridge_remove(struct platform_device *pdev)
class_destroy(bridge_class);
}
return 0;
return status;
}
#ifdef CONFIG_PM