diff options
author | Nestor Ovroy <novroy@riseup.net> | 2013-01-18 17:07:39 +0100 |
---|---|---|
committer | Mike Turquette <mturquette@linaro.org> | 2013-01-21 14:29:11 -0800 |
commit | 4cfe54e57910b59444d34a05284db27df416f20b (patch) | |
tree | 11acc88de7b1fe321b5552ca5eda9baa4fadce26 /drivers/clk/clk.c | |
parent | 135a829744067cb825b48f7422e22861e57d5ecd (diff) | |
download | linux-stable-4cfe54e57910b59444d34a05284db27df416f20b.tar.gz linux-stable-4cfe54e57910b59444d34a05284db27df416f20b.tar.bz2 linux-stable-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/clk.c')
-rw-r--r-- | drivers/clk/clk.c | 3 |
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); |