diff options
author | Julia Lawall <julia@diku.dk> | 2011-06-01 17:10:13 +0000 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2011-06-02 17:07:46 +0900 |
commit | 0057f1809d44b26765ec2374e0107a2f8ab256f5 (patch) | |
tree | a707d902b457825cf0acf44dbcd312bf9983df86 /net/tipc | |
parent | 609d3bbf044a6766f6505d8a29d4ed48020c014c (diff) |
drivers/video/pxa168fb.c: add missing clk_put
Add a label for error-handling code in the case where only clk_get has
succeeded. Rename the label failed to be consistent with the rest.
A simplified version of the semantic match that finds the missing clk_put
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: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'net/tipc')
0 files changed, 0 insertions, 0 deletions