Commit 7f5b57a0 authored by Xu Wang's avatar Xu Wang Committed by Heiko Stuebner
Browse files

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: default avatarXu Wang <vulab@iscas.ac.cn>
Acked-by: default avatarStephen Boyd <sboyd@kernel.org>
Link: https://lore.kernel.org/r/20201127090551.50254-1-vulab@iscas.ac.cn


Signed-off-by: default avatarHeiko Stuebner <heiko@sntech.de>
parent 6e0781e0
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -603,7 +603,6 @@ 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);
	}
}