diff options
author | Nestor Ovroy <novroy@riseup.net> | 2013-01-18 17:07:39 +0100 |
---|---|---|
committer | Haojian Zhuang <haojian.zhuang@linaro.org> | 2013-04-03 20:24:35 +0800 |
commit | 18a816f854ca325d6ad529be1eb2f02c5cd61fe6 (patch) | |
tree | d3a33b7dc0c4aa68e9e6eacd141a46d70eb38f85 /drivers | |
parent | 77a58029fccd7845a122bf1652d5896b64eaef7e (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')
-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 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); |