clk: mediatek: clk-mt7986-infracfg: delete the code related to 'base'
Subsystems (2)
PATCH 1/1 clk: mediatek: clk-mt7986-infracfg: delete the code related to 'base'
In clk_mt7986_infracfg_probe(), 'base' is allocated but never used, either not released on both success failure path.
Fix this by deleting 'base' and the code related to it.
Signed-off-by Xinyi Hou <[email protected]>
Reviewed-by Dongliang Mu <[email protected]>
---
drivers/clk/mediatek/clk-mt7986-infracfg.c | 7 ------- 1 file changed, 7 deletions(-)
drivers/clk/mediatek/clk-mt7986-infracfg.c +0 -7
@@ -174,16 +174,9 @@ static int clk_mt7986_infracfg_probe(struct platform_device *pdev)struct clk_hw_onecell_data *clk_data;struct device_node *node = pdev->dev.of_node;int r; -void __iomem *base;int nr =ARRAY_SIZE (infra_divs) +ARRAY_SIZE (infra_muxes) +ARRAY_SIZE (infra_clks); - base =of_iomap (node,0 ); -if (!base) { -pr_err ("%s(): ioremap failed\n" , __func__); -return -ENOMEM ; - } - clk_data =mtk_alloc_clk_data (nr);if (!clk_data)
Signature · 1 line
2.25.1
Quoted 7 lines · Xinyi Hou
In
clk_mt7986_infracfg_probe(), 'base' is allocated but never used, either not released on both success failure path.Fix this by deleting 'base' and the code related to it.
Signed-off-by Xinyi Hou<[email protected]>Reviewed-by Dongliang Mu<[email protected]>
Reviewed-by Alexandre Mergnat <[email protected]>
Signature · 2 lines
Regards, Alexandre