Skip to content

Commit

Permalink
clk: Deduplicate exit code in clk_set_rate
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Nestor Ovroy authored and Mike Turquette committed Jan 21, 2013
1 parent 135a829 commit 4cfe54e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/clk/clk.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 4cfe54e

Please sign in to comment.