mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 03:10:12 +00:00
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>
This commit is contained in:
parent
6e0781e092
commit
7f5b57a095
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue