media: ti-vpe: csc: remove redundant dev_err call in csc_create()
PATCH 1/1 media: ti-vpe: csc: remove redundant dev_err call in csc_create()
There is an 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 Yang Yingliang <[email protected]>
--- drivers/media/platform/ti-vpe/csc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/media/platform/ti-vpe/csc.c +1 -3
@@ -267,10 +267,8 @@ struct csc_data *csc_create(struct platform_device *pdev, const char *res_name) } csc->base =devm_ioremap_resource (&pdev->dev, csc->res); -if (IS_ERR (csc->base)) { -dev_err (&pdev->dev,"failed to ioremap\n" ); +if (IS_ERR (csc->base))return ERR_CAST (csc->base); - }return csc; }
Signature · 1 line
2.25.1
Yang,
Thank you for the patch.
Yang Yingliang <[email protected]> wrote on Thu [2021-Apr-01 18:28:50 +0800]:
Quoted 15 lines
There is an error message within
devm_ioremap_resourcealready, so remove thedev_errcall to avoid redundant error message.Reported-by Hulk Robot <[email protected]>Signed-off-by Yang Yingliang <[email protected]>--- drivers/media/platform/ti-vpe/csc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)drivers/media/platform/ti-vpe/csc.c +0
-0
drivers/media/platform/ti-vpe/csc.c struct csc_data *csc_create(struct platform_device *pdev, const char *res_name) · line 273
Quoted 8 lines
drivers/media/platform/ti-vpe/csc.c +1
-3@@ -267,10 +267,8 @@ struct csc_data *csc_create(struct platform_device *pdev, const char *res_name) } csc->base =devm_ioremap_resource (&pdev->dev, csc->res); -if (IS_ERR (csc->base)) { -dev_err (&pdev->dev,"failed to ioremap\n" ); +if (IS_ERR (csc->base))return ERR_CAST (csc->base); - }
Reviewed-by Benoit Parrot <[email protected]>
Quoted 6 lines
drivers/media/platform/ti-vpe/csc.c +0
-0return csc; }Signature · 1 line
2.25.1