Julia Lawall
2e4ceec4ed
drivers/net/can/flexcan.c: add missing clk_put
...
The failed_get label is used after the call to clk_get has succeeded, so it
should be moved up above the call to clk_put.
The failed_req labels doesn't do anything different than failed_get, so
delete it.
A simplified version of the semantic match that finds this problem is as
follows: (http://coccinelle.lip6.fr/ )
// <smpl>
@r exists@
expression e1,e2;
statement S;
@@
e1 = clk_get@p1(...);
... when != e1 = e2
when != clk_put(e1)
when any
if (...) { ... when != clk_put(e1)
when != if (...) { ... clk_put(e1) ... }
* return@p3 ...;
} else S
// </smpl>
Signed-off-by: Julia Lawall <julia@diku.dk >
Signed-off-by: David S. Miller <davem@davemloft.net >
2011-06-02 00:10:01 -07:00
..
2011-05-23 09:12:26 -07:00
2011-04-11 22:54:42 +02:00
2011-05-20 14:31:27 -07:00
2011-05-20 13:43:21 -07:00
2011-03-31 11:26:23 -03:00
2011-05-23 09:12:26 -07:00
2011-05-16 14:25:29 -04:00
2011-05-22 21:41:57 -07:00
2011-05-16 19:32:19 -04:00
2011-04-29 10:17:25 +02:00
2011-05-23 09:08:19 -07:00
2011-04-30 10:14:08 +01:00
2011-05-14 12:06:36 +02:00
2011-04-12 14:38:57 -07:00
2011-05-19 17:55:12 -07:00
2011-05-20 17:24:14 -07:00
2011-05-23 09:12:26 -07:00
2011-05-18 12:32:23 -06:00
2011-05-10 22:53:46 +02:00
2011-05-23 09:12:26 -07:00
2011-04-26 10:24:37 +02:00
2011-05-23 09:12:26 -07:00
2011-05-23 12:49:25 +02:00
2011-05-21 07:29:17 -07:00
2011-05-23 09:12:26 -07:00
2011-05-22 22:08:32 -07:00
2011-05-05 10:57:45 -07:00
2011-05-22 21:41:57 -07:00
2011-05-19 18:19:12 +02:00
2011-05-25 17:55:32 -04:00
2011-05-23 09:12:26 -07:00
2011-05-06 09:27:55 -07:00
2011-05-23 09:12:26 -07:00
2011-05-23 09:12:26 -07:00
2011-05-23 09:12:26 -07:00
2011-03-31 11:26:23 -03:00
2011-05-23 09:12:26 -07:00
2011-05-11 11:09:58 +02:00
2011-05-23 09:12:26 -07:00
2011-05-23 09:12:26 -07:00
2011-05-19 09:55:46 +01:00
2011-06-02 00:10:01 -07:00
2011-04-20 17:01:19 +10:00
2011-03-31 11:26:23 -03:00
2011-04-19 16:36:24 -07:00
2011-05-19 17:28:58 -07:00
2011-04-26 23:31:11 -07:00
2011-05-23 09:12:26 -07:00
2011-03-31 11:26:23 -03:00
2011-04-26 10:22:59 +02:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-05-18 02:55:22 -07:00
2011-05-10 10:11:29 +02:00
2011-05-19 17:45:08 -07:00
2011-05-20 13:43:21 -07:00
2011-03-31 11:26:23 -03:00
2011-05-23 09:12:26 -07:00
2011-03-31 11:26:23 -03:00
2011-05-18 23:24:50 +02:00
2011-05-20 13:43:21 -07:00
2011-05-25 13:28:55 -04:00
2011-05-23 09:12:26 -07:00
2011-03-31 11:26:23 -03:00
2011-05-23 09:12:26 -07:00
2011-04-19 16:59:57 -07:00
2011-05-23 09:12:26 -07:00
2011-03-31 11:26:23 -03:00
2011-05-06 09:27:55 -07:00
2011-05-23 09:12:26 -07:00
2011-04-21 22:57:00 +09:30
2011-03-31 11:26:23 -03:00
2011-05-23 09:12:26 -07:00
2011-05-23 09:12:26 -07:00
2011-05-20 13:43:21 -07:00
2011-05-10 15:54:54 -04:00