All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH -next] media: ti-vpe: csc: remove redundant dev_err call in csc_create()
@ 2021-04-01 10:28 Yang Yingliang
  2021-04-01 14:00 ` Benoit Parrot
  0 siblings, 1 reply; 2+ messages in thread
From: Yang Yingliang @ 2021-04-01 10:28 UTC (permalink / raw)
  To: linux-kernel, linux-media; +Cc: mchehab, bparrot

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 <hulkci@huawei.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
---
 drivers/media/platform/ti-vpe/csc.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

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;
 }
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH -next] media: ti-vpe: csc: remove redundant dev_err call in csc_create()
  2021-04-01 10:28 [PATCH -next] media: ti-vpe: csc: remove redundant dev_err call in csc_create() Yang Yingliang
@ 2021-04-01 14:00 ` Benoit Parrot
  0 siblings, 0 replies; 2+ messages in thread
From: Benoit Parrot @ 2021-04-01 14:00 UTC (permalink / raw)
  To: Yang Yingliang; +Cc: linux-kernel, linux-media, mchehab

Yang,

Thank you for the patch.

Yang Yingliang <yangyingliang@huawei.com> wrote on Thu [2021-Apr-01 18:28:50 +0800]:
> 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 <hulkci@huawei.com>
> Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
> ---
>  drivers/media/platform/ti-vpe/csc.c | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)
> 
> 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);
> -	}

Reviewed-by: Benoit Parrot <bparrot@ti.com>

>  
>  	return csc;
>  }
> -- 
> 2.25.1
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-04-02  8:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-01 10:28 [PATCH -next] media: ti-vpe: csc: remove redundant dev_err call in csc_create() Yang Yingliang
2021-04-01 14:00 ` Benoit Parrot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.