Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 71244085 authored by Wei Yongjun's avatar Wei Yongjun Committed by Mauro Carvalho Chehab
Browse files

[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: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Reviewed-by: default avatarTiffany Lin <tiffany.lin@mediatek.com>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 2efeec2d
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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;
		}