projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
14364fc
)
clk: fixed-rate: Remove redundant if statement
author
Li Zhengyu
<lizhengyu3@huawei.com>
Mon, 9 May 2022 09:21:02 +0000
(17:21 +0800)
committer
Stephen Boyd
<sboyd@kernel.org>
Tue, 17 May 2022 06:45:53 +0000
(23:45 -0700)
(np) is always true when (dev || !np) is false, so just remove
the check.
Signed-off-by: Li Zhengyu <lizhengyu3@huawei.com>
Link:
https://lore.kernel.org/r/20220509092102.140520-1-lizhengyu3@huawei.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clk-fixed-rate.c
patch
|
blob
|
history
diff --git
a/drivers/clk/clk-fixed-rate.c
b/drivers/clk/clk-fixed-rate.c
index 45501637705c30f88317e1cf70bba8d4dcc92cfd..ac68a6b40f0e5d0d0b238844a2fd1d6cae88353c 100644
(file)
--- a/
drivers/clk/clk-fixed-rate.c
+++ b/
drivers/clk/clk-fixed-rate.c
@@
-87,7
+87,7
@@
struct clk_hw *__clk_hw_register_fixed_rate(struct device *dev,
hw = &fixed->hw;
if (dev || !np)
ret = clk_hw_register(dev, hw);
- else
if (np)
+ else
ret = of_clk_hw_register(np, hw);
if (ret) {
kfree(fixed);