]> git.karo-electronics.de Git - linux-beck.git/commitdiff
clk: Deduplicate exit code in clk_set_rate
authorNestor Ovroy <novroy@riseup.net>
Fri, 18 Jan 2013 16:07:39 +0000 (17:07 +0100)
committerMike Turquette <mturquette@linaro.org>
Mon, 21 Jan 2013 22:29:11 +0000 (14:29 -0800)
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>
drivers/clk/clk.c

index 593a2e42d4afe984ac9ebf4a47c7a1457caf7fca..ad2ac94fede842ded7f3912ecfa1c7014dce7206 100644 (file)
@@ -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);