diff options
author | Liu Shixin <liushixin2@huawei.com> | 2020-09-21 10:24:25 +0200 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2020-09-22 21:56:26 +0200 |
commit | eff8a85acfb4790b97a5ee2fa6271c02f91662a3 (patch) | |
tree | 43860768f8007f41d99b70e0c0d4b8b16b47637d /drivers/clk/mediatek/clk-mt6797.c | |
parent | Linux 5.9-rc1 (diff) | |
download | linux-eff8a85acfb4790b97a5ee2fa6271c02f91662a3.tar.xz linux-eff8a85acfb4790b97a5ee2fa6271c02f91662a3.zip |
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>
Diffstat (limited to 'drivers/clk/mediatek/clk-mt6797.c')
-rw-r--r-- | drivers/clk/mediatek/clk-mt6797.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/clk/mediatek/clk-mt6797.c b/drivers/clk/mediatek/clk-mt6797.c index f35389a11af1..428eb24ffec5 100644 --- a/drivers/clk/mediatek/clk-mt6797.c +++ b/drivers/clk/mediatek/clk-mt6797.c @@ -582,7 +582,7 @@ CLK_OF_DECLARE_DRIVER(mtk_infra, "mediatek,mt6797-infracfg", static int mtk_infrasys_init(struct platform_device *pdev) { - int r, i; + int i; struct device_node *node = pdev->dev.of_node; if (!infra_clk_data) { @@ -599,11 +599,7 @@ static int mtk_infrasys_init(struct platform_device *pdev) mtk_clk_register_factors(infra_fixed_divs, ARRAY_SIZE(infra_fixed_divs), infra_clk_data); - r = of_clk_add_provider(node, of_clk_src_onecell_get, infra_clk_data); - if (r) - return r; - - return 0; + return of_clk_add_provider(node, of_clk_src_onecell_get, infra_clk_data); } #define MT6797_PLL_FMAX (3000UL * MHZ) |