summaryrefslogtreecommitdiff
path: root/drivers/hid/hid-ids.h
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2013-12-29 22:47:27 (GMT)
committerJiri Kosina <jkosina@suse.cz>2014-01-02 12:50:36 (GMT)
commit8cd5fcda24b48b162699730da7ead7329b27159e (patch)
treef9b8a319d4c0a202abb5e13fcbdffd499ee406d5 /drivers/hid/hid-ids.h
parent0a286ef278529f2bc4f4bb27c4cf99c05999c818 (diff)
downloadlinux-8cd5fcda24b48b162699730da7ead7329b27159e.tar.xz
HID: sony: fix error return code
Currently the return variable ret is always 0. Set it to other values in error cases, as used in the direct return. 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: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-ids.h')
0 files changed, 0 insertions, 0 deletions