Julia Lawall
8cd5fcda24
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 >
2014-01-02 13:50:36 +01:00
..
2013-11-15 16:48:22 -08:00
2013-11-16 00:04:57 +01:00
2013-07-31 10:12:28 +02:00
2013-10-14 16:07:42 +02:00
2013-04-18 19:06:20 -07:00
2013-11-12 19:06:23 +01:00
2013-11-19 11:28:03 +01:00
2013-05-06 13:07:33 +02:00
2013-02-25 13:26:41 +01:00
2013-09-25 11:28:50 +02:00
2013-02-25 13:26:41 +01:00
2013-02-25 13:26:41 +01:00
2013-10-25 10:26:43 +01:00
2013-08-05 11:29:57 +02:00
2013-05-28 14:29:38 +02:00
2013-08-02 11:34:30 +08:00
2013-04-24 16:32:27 +02:00
2013-11-19 11:28:03 +01:00
2013-10-18 15:13:39 +02:00
2013-07-15 10:25:33 +02:00
2013-09-24 11:47:47 +02:00
2013-10-09 12:06:02 +02:00
2013-09-13 15:12:39 +02:00
2013-11-08 14:12:08 +01:00
2013-10-14 20:51:05 +02:00
2013-09-13 15:12:39 +02:00
2013-10-30 14:43:29 +01:00
2013-07-22 16:32:24 +02:00
2013-09-06 11:58:37 +02:00
2013-04-29 10:16:55 +02:00
2013-10-25 09:46:30 +01:00
2013-09-04 12:00:23 +02:00
2013-02-25 13:26:41 +01:00
2013-09-02 13:36:50 +02:00
2013-09-04 12:03:27 +02:00
2013-07-22 16:16:40 +02:00
2013-09-02 13:36:50 +02:00
2013-02-25 13:26:41 +01:00
2013-02-25 13:26:41 +01:00
2013-04-30 10:19:07 +02:00
2013-09-04 11:58:32 +02:00
2013-02-25 13:26:41 +01:00
2013-09-06 09:30:36 -07:00
2013-10-30 14:17:31 +01:00
2013-10-30 14:17:31 +01:00
2013-09-06 09:30:36 -07:00
2013-03-14 11:50:49 +01:00
2013-09-30 10:51:31 +02:00
2013-04-08 10:33:13 +02:00
2013-09-30 10:51:31 +02:00
2013-10-30 14:17:31 +01:00
2013-11-04 10:55:20 +01:00
2013-09-30 10:51:31 +02:00
2013-10-30 14:17:31 +01:00
2013-10-30 14:17:31 +01:00
2013-10-30 14:17:31 +01:00
2013-06-18 11:00:36 +02:00
2013-11-15 16:48:22 -08:00
2013-02-25 13:26:41 +01:00
2014-01-02 13:50:36 +01:00
2013-08-26 13:51:10 +02:00
2013-09-13 15:12:28 +02:00
2013-02-25 13:26:40 +01:00
2013-02-25 13:26:41 +01:00
2013-07-04 15:04:47 +02:00
2013-11-19 11:28:03 +01:00
2013-06-03 11:07:06 +02:00
2013-10-30 14:13:29 +01:00
2013-11-15 16:48:22 -08:00
2013-08-26 13:23:04 +02:00
2013-09-13 15:11:34 +02:00
2013-07-31 10:12:28 +02:00
2013-10-02 17:02:08 +02:00
2013-11-16 00:04:57 +01:00
2013-10-30 14:17:31 +01:00
2013-09-26 11:03:29 +02:00