summaryrefslogtreecommitdiffstats
path: root/drivers/clk/clk.c
diff options
context:
space:
mode:
authorNestor Ovroy <novroy@riseup.net>2013-01-18 17:07:39 +0100
committerMike Turquette <mturquette@linaro.org>2013-01-21 14:29:11 -0800
commit4cfe54e57910b59444d34a05284db27df416f20b (patch)
tree11acc88de7b1fe321b5552ca5eda9baa4fadce26 /drivers/clk/clk.c
parent135a829744067cb825b48f7422e22861e57d5ecd (diff)
clk: Deduplicate exit code in clk_set_rate
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>
Diffstat (limited to 'drivers/clk/clk.c')
-rw-r--r--drivers/clk/clk.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c
index 593a2e42d4a..ad2ac94fede 100644
--- 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);