diff options
author | Li Zhengyu <[email protected]> | 2022-05-09 17:21:02 +0800 |
---|---|---|
committer | Stephen Boyd <[email protected]> | 2022-05-16 23:45:53 -0700 |
commit | b69b0adc71637d436883c5ed9bfadbfbb7e02fda (patch) | |
tree | a74f08301d1acc84cc03961a2f406aca71209dd7 | |
parent | 14364fca21208d0954d594e1eccb4ad239881081 (diff) |
clk: fixed-rate: Remove redundant if statement
(np) is always true when (dev || !np) is false, so just remove
the check.
Signed-off-by: Li Zhengyu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Stephen Boyd <[email protected]>
-rw-r--r-- | drivers/clk/clk-fixed-rate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/clk-fixed-rate.c b/drivers/clk/clk-fixed-rate.c index 45501637705c..ac68a6b40f0e 100644 --- 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); |