Skip to content

Commit b37c1e6

Browse files
Liu Shixinbebarino
authored andcommitted
clk: mediatek: mt7629: simplify the return expression of mtk_infrasys_init
Simplify the return expression. Signed-off-by: Liu Shixin <liushixin2@huawei.com> Link: https://lore.kernel.org/r/20200921082426.2591042-1-liushixin2@huawei.com Signed-off-by: Stephen Boyd <sboyd@kernel.org>
1 parent eff8a85 commit b37c1e6

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

‎drivers/clk/mediatek/clk-mt7629.c‎

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,6 @@ static int mtk_infrasys_init(struct platform_device *pdev)
601601
{
602602
struct device_node *node = pdev->dev.of_node;
603603
struct clk_onecell_data *clk_data;
604-
int r;
605604

606605
clk_data = mtk_alloc_clk_data(CLK_INFRA_NR_CLK);
607606

@@ -611,12 +610,8 @@ static int mtk_infrasys_init(struct platform_device *pdev)
611610
mtk_clk_register_cpumuxes(node, infra_muxes, ARRAY_SIZE(infra_muxes),
612611
clk_data);
613612

614-
r = of_clk_add_provider(node, of_clk_src_onecell_get,
615-
clk_data);
616-
if (r)
617-
return r;
618-
619-
return 0;
613+
return of_clk_add_provider(node, of_clk_src_onecell_get,
614+
clk_data);
620615
}
621616

622617
static int mtk_pericfg_init(struct platform_device *pdev)

0 commit comments

Comments
 (0)