summaryrefslogtreecommitdiff
path: root/drivers/clk
diff options
context:
space:
mode:
authorNestor Ovroy <novroy@riseup.net>2013-01-18 20:07:39 +0400
committerMike Turquette <mturquette@linaro.org>2013-01-22 02:29:11 +0400
commit4cfe54e57910b59444d34a05284db27df416f20b (patch)
tree11acc88de7b1fe321b5552ca5eda9baa4fadce26 /drivers/clk
parent135a829744067cb825b48f7422e22861e57d5ecd (diff)
downloadlinux-4cfe54e57910b59444d34a05284db27df416f20b.tar.xz
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')
-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 593a2e42d4af..ad2ac94fede8 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);