mtk-vcodec: remove redundant dev_err call in mtk_vcodec_probe()
Subsystems (2)
PATCH 1/1 mtk-vcodec: remove redundant dev_err call in mtk_vcodec_probe()
From: Wei Yongjun <[email protected]>
There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message.
Signed-off-by Wei Yongjun <[email protected]>
--- drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c | 2 -- 1 file changed, 2 deletions(-)
drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c +0 -2
@@ -279,8 +279,6 @@ static int mtk_vcodec_probe(struct platform_device *pdev) } dev->reg_base[i] =devm_ioremap_resource (&pdev->dev, res);if (IS_ERR ((__force void *)dev->reg_base[i])) { -dev_err (&pdev->dev, -"devm_ioremap_resource %d failed." , i); ret =PTR_ERR ((__force void *)dev->reg_base[i]); goto err_res; }
PATCH 1/1 mtk-vcodec: remove redundant dev_err call in mtk_vcodec_probe()
Reviewed-by Tiffany Lin <[email protected]>
Quoted 26 lines · On Tue, 2016-07-12 at 11:02 +0000, weiyj_lk at 163.com wrote:
From: Wei Yongjun <[email protected]>
There is a error message within
devm_ioremap_resourcealready, so remove thedev_errcall to avoid redundant error message.Signed-off-by Wei Yongjun <[email protected]>--- drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c | 2 -- 1 file changed, 2 deletions(-)drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c +0
-2@@ -279,8 +279,6 @@ static int mtk_vcodec_probe(struct platform_device *pdev) } dev->reg_base[i] =devm_ioremap_resource (&pdev->dev, res);if (IS_ERR ((__force void *)dev->reg_base[i])) { -dev_err (&pdev->dev, -"devm_ioremap_resource %d failed." , i); ret =PTR_ERR ((__force void *)dev->reg_base[i]); goto err_res; }