aboutsummaryrefslogtreecommitdiffstats
path: root/arch/avr32/mach-at32ap
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2014-08-07 14:49:05 +0200
committerHans-Christian Egtvedt <egtvedt@samfundet.no>2014-08-07 15:28:35 +0200
commit686913aa9f5179647818813fd2bc8342cf7119c4 (patch)
treeb90dbd58c8b22d1d9dcc675dbfc7cf23d0e740bd /arch/avr32/mach-at32ap
parentLinux 3.16 (diff)
downloadlinux-dev-686913aa9f5179647818813fd2bc8342cf7119c4.tar.xz
linux-dev-686913aa9f5179647818813fd2bc8342cf7119c4.zip
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/avr32/mach-at32ap')
0 files changed, 0 insertions, 0 deletions