* [PATCH -next] [media] mtk-vcodec: remove redundant dev_err call in mtk_vcodec_probe()
@ 2016-07-12 11:02 weiyj_lk at 163.com
2016-07-12 11:25 ` tiffany lin
0 siblings, 1 reply; 2+ messages in thread
From: weiyj_lk at 163.com @ 2016-07-12 11:02 UTC (permalink / raw)
To: linux-arm-kernel
From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
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 <yongjun_wei@trendmicro.com.cn>
---
drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c | 2 --
1 file changed, 2 deletions(-)
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 9c10cc2..b33a931 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;
}
^ permalink raw reply related [flat|nested] 2+ messages in thread* [PATCH -next] [media] mtk-vcodec: remove redundant dev_err call in mtk_vcodec_probe()
2016-07-12 11:02 [PATCH -next] [media] mtk-vcodec: remove redundant dev_err call in mtk_vcodec_probe() weiyj_lk at 163.com
@ 2016-07-12 11:25 ` tiffany lin
0 siblings, 0 replies; 2+ messages in thread
From: tiffany lin @ 2016-07-12 11:25 UTC (permalink / raw)
To: linux-arm-kernel
Reviewed-by: Tiffany Lin <tiffany.lin@mediatek.com>
On Tue, 2016-07-12 at 11:02 +0000, weiyj_lk at 163.com wrote:
> From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
>
> 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 <yongjun_wei@trendmicro.com.cn>
> ---
> drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c | 2 --
> 1 file changed, 2 deletions(-)
>
> 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 9c10cc2..b33a931 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;
> }
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-07-12 11:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-12 11:02 [PATCH -next] [media] mtk-vcodec: remove redundant dev_err call in mtk_vcodec_probe() weiyj_lk at 163.com
2016-07-12 11:25 ` tiffany lin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).