提交 4cfe54e5 编写于 作者: N Nestor Ovroy 提交者: Mike Turquette

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: NNestor Ovroy <novroy@riseup.net>
上级 135a8297
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册