From: Wei Yongjun Date: Tue, 12 Jul 2016 11:02:59 +0000 (-0300) Subject: [media] mtk-vcodec: remove redundant dev_err call in mtk_vcodec_probe() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=712440857e53e2887a5acf7769caa617d1e99b80;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git [media] mtk-vcodec: remove redundant dev_err call in mtk_vcodec_probe() 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 Reviewed-by: Tiffany Lin Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c b/drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c index 60b0bde232f4..e277b7c23516 100644 --- a/drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c +++ b/drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c @@ -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; }