Julia Lawall
137bc99ff3
drivers/net/ethernet/freescale/fs_enet: fix error return code
...
Convert a 0 error return code 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 e,e1,e2,e3,e4,x;
@@
(
if (\(ret != 0\|ret < 0\) || ...) { ... return ...; }
|
ret = 0
)
... when != ret = e1
*x = \(kmalloc\|kzalloc\|kcalloc\|devm_kzalloc\|ioremap\|ioremap_nocache\|devm_ioremap\|devm_ioremap_nocache\)(...);
... when != x = e2
when != ret = e3
*if (x == NULL || ...)
{
... when != ret = e4
* return ret;
}
// </smpl>
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-08-14 17:00:56 -07:00
..
2012-08-12 21:34:09 +03:00
2012-07-27 15:14:26 -07:00
2012-08-02 11:50:24 -07:00
2012-08-06 13:29:57 -07:00
2012-08-08 20:49:33 +02:00
2012-08-02 13:51:46 -04:00
2012-08-04 12:15:39 +04:00
2012-07-17 14:49:24 -03:00
2012-08-14 07:52:41 +03:00
2012-07-30 17:25:13 -07:00
2012-07-23 16:31:31 -07:00
2012-07-16 23:23:52 -07:00
2012-08-08 20:49:25 +02:00
2012-07-26 14:28:55 -07:00
2012-07-31 19:07:42 -07:00
2012-08-02 11:45:42 -07:00
2012-07-29 21:11:05 -03:00
2012-07-30 12:41:17 -07:00
2012-07-30 09:32:39 -07:00
2012-07-31 19:07:42 -07:00
2012-08-14 07:50:36 +03:00
2012-08-13 10:53:29 -04:00
2012-07-31 18:47:44 -07:00
2012-07-31 19:07:42 -07:00
2012-07-30 10:10:26 -07:00
2012-07-31 19:07:42 -07:00
2012-07-26 14:28:55 -07:00
2012-07-12 07:54:45 -07:00
2012-07-15 17:33:17 +01:00
2012-07-30 07:47:27 -07:00
2012-08-09 15:16:41 +02:00
2012-08-06 18:10:04 +02:00
2012-08-06 13:22:50 -07:00
2012-08-13 14:34:02 +08:00
2012-08-02 11:34:40 -07:00
2012-07-31 18:47:44 -07:00
2012-07-30 17:25:17 -07:00
2012-08-10 12:28:57 +02:00
2012-07-30 17:25:34 -07:00
2012-08-01 16:41:07 -07:00
2012-08-12 21:31:44 +03:00
2012-08-14 17:00:56 -07:00
2012-07-09 16:42:24 -04:00
2012-07-24 14:07:22 -07:00
2012-07-24 16:17:07 -07:00
2012-07-24 16:17:07 -07:00
2012-07-27 15:14:26 -07:00
2012-08-07 14:34:12 +02:00
2012-08-10 14:29:43 +02:00
2012-08-02 11:52:39 -07:00
2012-07-30 17:25:21 -07:00
2012-07-26 07:45:20 +02:00
2012-07-31 00:51:09 +02:00
2012-07-26 16:19:08 -07:00
2012-07-26 16:19:08 -07:00
2012-08-08 20:49:16 +02:00
2012-08-08 07:32:55 -07:00
2012-08-01 09:02:41 -07:00
2012-08-01 17:14:52 +09:00
2012-08-10 12:27:47 +02:00
2012-08-02 11:52:39 -07:00
2012-08-01 10:26:23 -07:00
2012-07-31 18:08:25 -07:00
2012-08-01 13:48:54 +09:00
2012-08-12 21:31:44 +03:00
2012-07-31 08:16:24 -06:00
2012-07-29 13:49:10 -07:00
2012-08-01 10:45:12 -07:00
2012-07-20 08:59:03 +01:00
2012-07-19 15:39:39 -07:00
2012-07-26 11:25:33 -07:00
2012-08-02 11:50:24 -07:00
2012-07-24 16:17:07 -07:00
2012-07-15 19:56:38 +02:00
2012-07-31 08:16:22 -06:00
2012-07-31 08:16:22 -06:00