summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorXu Wang <vulab@iscas.ac.cn>2020-11-27 09:05:51 +0000
committerHeiko Stuebner <heiko@sntech.de>2020-11-29 20:02:58 +0100
commit7f5b57a095f3b9532793d143655e83433bb448af (patch)
tree091011182f1ca8ec4a8d3679aff0384f66936254 /drivers
parent6e0781e092a150b040cc305fd1832730cf78580a (diff)
clk: rockchip: Remove redundant null check before clk_prepare_enable
Because clk_prepare_enable() already checked NULL clock parameter, so the additional check is unnecessary, just remove it. Signed-off-by: Xu Wang <vulab@iscas.ac.cn> Acked-by: Stephen Boyd <sboyd@kernel.org> Link: https://lore.kernel.org/r/20201127090551.50254-1-vulab@iscas.ac.cn Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/clk/rockchip/clk.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/clk/rockchip/clk.c b/drivers/clk/rockchip/clk.c
index b443169dd408..336481bc6cc7 100644
--- a/drivers/clk/rockchip/clk.c
+++ b/drivers/clk/rockchip/clk.c
@@ -603,8 +603,7 @@ void rockchip_clk_protect_critical(const char *const clocks[],
for (i = 0; i < nclocks; i++) {
struct clk *clk = __clk_lookup(clocks[i]);
- if (clk)
- clk_prepare_enable(clk);
+ clk_prepare_enable(clk);
}
}
EXPORT_SYMBOL_GPL(rockchip_clk_protect_critical);