diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2014-08-07 16:49:05 +0400 |
---|---|---|
committer | Hans-Christian Egtvedt <egtvedt@samfundet.no> | 2014-08-07 17:28:35 +0400 |
commit | 686913aa9f5179647818813fd2bc8342cf7119c4 (patch) | |
tree | b90dbd58c8b22d1d9dcc675dbfc7cf23d0e740bd /arch/arm/mach-footbridge | |
parent | 19583ca584d6f574384e17fe7613dfaeadcdc4a6 (diff) | |
download | linux-686913aa9f5179647818813fd2bc8342cf7119c4.tar.xz |
avr32: fix error return code
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>
Diffstat (limited to 'arch/arm/mach-footbridge')
0 files changed, 0 insertions, 0 deletions