alistair23-linux/drivers/net/can
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
..
c_can Fix common misspellings 2011-03-31 11:26:23 -03:00
mscan drivercore: revert addition of of_match to struct device 2011-05-18 12:32:23 -06:00
sja1000 can: fix SJA1000 dlc for RTR packets 2011-05-05 11:02:22 -07:00
softing Merge branch 'master' into for-next 2011-04-26 10:22:59 +02:00
usb Fix common misspellings 2011-03-31 11:26:23 -03:00
at91_can.c Fix common misspellings 2011-03-31 11:26:23 -03:00
bfin_can.c
dev.c
flexcan.c drivers/net/can/flexcan.c: add missing clk_put 2011-06-02 00:10:01 -07:00
janz-ican3.c Fix common misspellings 2011-03-31 11:26:23 -03:00
Kconfig
Makefile
mcp251x.c can: mcp251x: Allow pass IRQ flags through platform data. 2011-04-06 12:24:26 -07:00
pch_can.c treewide: fix a few typos in comments 2011-05-10 10:16:21 +02:00
slcan.c slcan: fix ldisc->open retval 2011-05-10 15:04:07 -07:00
ti_hecc.c Fix common misspellings 2011-03-31 11:26:23 -03:00
vcan.c