clk: Deduplicate exit code in clk_set_rate
PATCH 1/1 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 <[email protected]>
--- drivers/clk/clk.c | 3 --- 1 file changed, 3 deletions(-)
drivers/clk/clk.c +0 -3
@@ -948,13 +948,10 @@ 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);return ret; }
Signature · 1 line
1.7.10.4
PATCH 1/1 clk: Deduplicate exit code in clk_set_rate
Quoting Nestor Ovroy (2013-01-18 08:07:39)
Quoted 4 lines
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 <[email protected]>
Nestor,
Thanks for the fix. Taken into clk-next.
Regards,
Mike
Quoted 24 lines
--- drivers/clk/clk.c | 3 --- 1 file changed, 3 deletions(-)drivers/clk/clk.c +0
-3@@ -948,13 +948,10 @@ 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);return ret; }Signature · 1 line
1.7.10.4