diff options
author | Julia Lawall <[email protected]> | 2013-12-29 23:47:19 +0100 |
---|---|---|
committer | Artem Bityutskiy <[email protected]> | 2014-01-02 17:16:01 +0200 |
commit | 4d525145a6f12b8835795beb833444d3da48fd05 (patch) | |
tree | bde316c38564d55bc5e6d1bdf110c395e1691528 /net/lapb/lapb_out.c | |
parent | 802eee95bde72fd0cd0f3a5b2098375a487d1eda (diff) |
UBI: fix error return code
Set the return variable to an error code as done elsewhere in the function.
A simplified version of the semantic match that finds this problem is as
follows: (http://coccinelle.lip6.fr/)
// <smpl>
(
if@p1 (\(ret < 0\|ret != 0\))
{ ... return ret; }
|
ret@p1 = 0
)
... when != ret = e1
when != &ret
*if(...)
{
... when != ret = e2
when forall
return ret;
}
// </smpl>
Signed-off-by: Julia Lawall <[email protected]>
Reviewed-by: Richard Weinberger <[email protected]>
Diffstat (limited to 'net/lapb/lapb_out.c')
0 files changed, 0 insertions, 0 deletions