Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Liu Shixin and committed by
Stephen Boyd
b37c1e67 eff8a85a

+2 -7
+2 -7
drivers/clk/mediatek/clk-mt7629.c
··· 601 601 { 602 602 struct device_node *node = pdev->dev.of_node; 603 603 struct clk_onecell_data *clk_data; 604 - int r; 605 604 606 605 clk_data = mtk_alloc_clk_data(CLK_INFRA_NR_CLK); 607 606 ··· 610 611 mtk_clk_register_cpumuxes(node, infra_muxes, ARRAY_SIZE(infra_muxes), 611 612 clk_data); 612 613 613 - r = of_clk_add_provider(node, of_clk_src_onecell_get, 614 - clk_data); 615 - if (r) 616 - return r; 617 - 618 - return 0; 614 + return of_clk_add_provider(node, of_clk_src_onecell_get, 615 + clk_data); 619 616 } 620 617 621 618 static int mtk_pericfg_init(struct platform_device *pdev)