projects
/
deliverable
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
135a829
)
clk: Deduplicate exit code in clk_set_rate
author
Nestor Ovroy
<novroy@riseup.net>
Fri, 18 Jan 2013 16:07:39 +0000
(17:07 +0100)
committer
Mike Turquette
<mturquette@linaro.org>
Mon, 21 Jan 2013 22:29:11 +0000
(14:29 -0800)
On non-out case 'return ret;' is equivalent to 'return 0;' as the ret
variable is initialized at 0 and never changed.
Signed-off-by: Nestor Ovroy <novroy@riseup.net>
drivers/clk/clk.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/clk/clk.c
b/drivers/clk/clk.c
index 593a2e42d4afe984ac9ebf4a47c7a1457caf7fca..ad2ac94fede842ded7f3912ecfa1c7014dce7206 100644
(file)
--- a/
drivers/clk/clk.c
+++ b/
drivers/clk/clk.c
@@
-1093,9
+1093,6
@@
int clk_set_rate(struct clk *clk, unsigned long rate)
/* change the rates */
clk_change_rate(top);
- mutex_unlock(&prepare_lock);
-
- return 0;
out:
mutex_unlock(&prepare_lock);
This page took
0.025199 seconds
and
5
git commands to generate.