phy: phy-mtk-hdmi: Remove redundant dev_err call in mtk_hdmi_phy_probe()
Subsystems (4)
PATCH v2 1/1 phy: phy-mtk-hdmi: Remove redundant dev_err call in mtk_hdmi_phy_probe()
There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message.
Reported-by Hulk Robot <[email protected]>
Signed-off-by He Ying <[email protected]>
---
v2:
- Use 'return PTR_ERR()' instead of 'ret = PTR_ERR();return ret;'.
drivers/phy/mediatek/phy-mtk-hdmi.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/phy/mediatek/phy-mtk-hdmi.c +1 -3
@@ -119,9 +119,7 @@ static int mtk_hdmi_phy_probe(struct platform_device *pdev) mem =platform_get_resource (pdev,IORESOURCE_MEM ,0 ); hdmi_phy->regs =devm_ioremap_resource (dev, mem);if (IS_ERR (hdmi_phy->regs)) { - ret =PTR_ERR (hdmi_phy->regs); -dev_err (dev,"Failed to get memory resource: %d\n" , ret); -return ret; +return PTR_ERR (hdmi_phy->regs); } ref_clk =devm_clk_get (dev,"pll_ref" );
Signature · 1 line
2.17.1
Quoted 18 lines · He Ying
There is a error message within
devm_ioremap_resourcealready, so remove thedev_errcall to avoid redundant error message.Reported-by Hulk Robot <[email protected]>Signed-off-by He Ying <[email protected]>---
v2:
- Use 'returnPTR_ERR()' instead of 'ret = PTR_ERR();return ret;'.drivers/phy/mediatek/phy-mtk-hdmi.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)drivers/phy/mediatek/phy-mtk-hdmi.c +0
-0
drivers/phy/mediatek/phy-mtk-hdmi.c static int mtk_hdmi_phy_probe(struct platform_device *pdev) · line 123
Quoted 8 lines
drivers/phy/mediatek/phy-mtk-hdmi.c +1
-3@@ -119,9 +119,7 @@ static int mtk_hdmi_phy_probe(struct platform_device *pdev) mem =platform_get_resource (pdev,IORESOURCE_MEM ,0 ); hdmi_phy->regs =devm_ioremap_resource (dev, mem);if (IS_ERR (hdmi_phy->regs)) { - ret =PTR_ERR (hdmi_phy->regs); -dev_err (dev,"Failed to get memory resource: %d\n" , ret); -return ret; +return PTR_ERR (hdmi_phy->regs); }
Reviewed-by Chunfeng Yun <[email protected]>
Thanks a lot
Quoted 2 lines
drivers/phy/mediatek/phy-mtk-hdmi.c +0
-0ref_clk =devm_clk_get (dev,"pll_ref" );