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

clk: mediatek: mt6797: 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/20200921082425.2590990-1-liushixin2@huawei.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>

authored by

Liu Shixin and committed by
Stephen Boyd
eff8a85a 9123e3a7

+2 -6
+2 -6
drivers/clk/mediatek/clk-mt6797.c
··· 582 582 583 583 static int mtk_infrasys_init(struct platform_device *pdev) 584 584 { 585 - int r, i; 585 + int i; 586 586 struct device_node *node = pdev->dev.of_node; 587 587 588 588 if (!infra_clk_data) { ··· 599 599 mtk_clk_register_factors(infra_fixed_divs, ARRAY_SIZE(infra_fixed_divs), 600 600 infra_clk_data); 601 601 602 - r = of_clk_add_provider(node, of_clk_src_onecell_get, infra_clk_data); 603 - if (r) 604 - return r; 605 - 606 - return 0; 602 + return of_clk_add_provider(node, of_clk_src_onecell_get, infra_clk_data); 607 603 } 608 604 609 605 #define MT6797_PLL_FMAX (3000UL * MHZ)