From: Yang Yingliang Date: Thu, 1 Apr 2021 10:28:50 +0000 (+0200) Subject: media: ti-vpe: csc: remove redundant dev_err call in csc_create() X-Git-Tag: howlett/maple/20220722_2~3287^2~66 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=dd5467909a2e400198b6e821a2a08045d721cb8b;p=users%2Fjedix%2Flinux-maple.git 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 Signed-off-by: Yang Yingliang Reviewed-by: Benoit Parrot Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/platform/ti-vpe/csc.c b/drivers/media/platform/ti-vpe/csc.c index f4e0cf72d1cf..ff15bc589f1b 100644 --- a/drivers/media/platform/ti-vpe/csc.c +++ b/drivers/media/platform/ti-vpe/csc.c @@ -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; }