summaryrefslogtreecommitdiffstats
path: root/drivers/clk
diff options
context:
space:
mode:
authorNestor Ovroy2013-01-18 17:07:39 +0100
committerMike Turquette2013-01-21 23:29:11 +0100
commit4cfe54e57910b59444d34a05284db27df416f20b (patch)
tree11acc88de7b1fe321b5552ca5eda9baa4fadce26 /drivers/clk
parentclk: beautify Makefile (diff)
downloadkernel-qcow2-linux-4cfe54e57910b59444d34a05284db27df416f20b.tar.gz
kernel-qcow2-linux-4cfe54e57910b59444d34a05284db27df416f20b.tar.xz
kernel-qcow2-linux-4cfe54e57910b59444d34a05284db27df416f20b.zip
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);