From: Nestor Ovroy Date: Fri, 18 Jan 2013 16:07:39 +0000 (+0100) Subject: clk: Deduplicate exit code in clk_set_rate X-Git-Tag: next-20130218~5^2~7 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=4cfe54e57910b59444d34a05284db27df416f20b;p=karo-tx-linux.git 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 --- 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);