summaryrefslogtreecommitdiff
path: root/drivers/uio
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2014-06-08 20:12:00 (GMT)
committerJonathan Cameron <jic23@kernel.org>2014-08-07 09:26:53 (GMT)
commit889c558095e96312d81b4084567c11a52b285393 (patch)
tree0d481ba8421cce7c07b8435e589bdf043e058fb0 /drivers/uio
parentd7b79519faa926a9d6d1cdebfddea7a58a9951f3 (diff)
downloadlinux-889c558095e96312d81b4084567c11a52b285393.tar.xz
iio: 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> ( 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 <Julia.Lawall@lip6.fr> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/uio')
0 files changed, 0 insertions, 0 deletions