Tag: 8cd5fcda24b48b162699730da7ead7329b27159e

HID: sony: fix error return code

Author: Julia Lawall <Julia.Lawall@lip6.fr> 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/) // ( if@p1 (\(ret < 0\|ret != 0\)) { ... return ret; } | …

Continue reading