Skip to content

Commit 653395e

Browse files
committed
clk: renesas: rzg2l: Remove unneeded nullify checks
RZ/G2L family clock drivers never had a need to nullify clocks. Remove the unneeded checks. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Link: https://lore.kernel.org/64702c33396dde2689b44d3e326aa1727ef1557a.1740126560.git.geert+renesas@glider.be
1 parent 6c6ae70 commit 653395e

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

drivers/clk/renesas/rzg2l-cpg.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1116,11 +1116,6 @@ rzg2l_cpg_register_core_clk(const struct cpg_core_clk *core,
11161116
WARN_DEBUG(id >= priv->num_core_clks);
11171117
WARN_DEBUG(PTR_ERR(priv->clks[id]) != -ENOENT);
11181118

1119-
if (!core->name) {
1120-
/* Skip NULLified clock */
1121-
return;
1122-
}
1123-
11241119
switch (core->type) {
11251120
case CLK_TYPE_IN:
11261121
clk = of_clk_get_by_name(priv->dev->of_node, core->name);
@@ -1355,11 +1350,6 @@ rzg2l_cpg_register_mod_clk(const struct rzg2l_mod_clk *mod,
13551350
WARN_DEBUG(mod->parent >= priv->num_core_clks + priv->num_mod_clks);
13561351
WARN_DEBUG(PTR_ERR(priv->clks[id]) != -ENOENT);
13571352

1358-
if (!mod->name) {
1359-
/* Skip NULLified clock */
1360-
return;
1361-
}
1362-
13631353
parent = priv->clks[mod->parent];
13641354
if (IS_ERR(parent)) {
13651355
clk = parent;

0 commit comments

Comments
 (0)