dri-devel.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] drm/msm: Remove redundant DRM_DEV_ERROR()
@ 2023-07-27 11:24 Ruan Jinjie
  2023-08-02  9:35 ` Dmitry Baryshkov
  2023-08-02  9:55 ` Dmitry Baryshkov
  0 siblings, 2 replies; 3+ messages in thread
From: Ruan Jinjie @ 2023-07-27 11:24 UTC (permalink / raw)
  To: robdclark, quic_abhinavk, dmitry.baryshkov, sean, marijn.suijten,
	airlied, daniel, quic_jesszhan, dri-devel, freedreno,
	linux-kernel
  Cc: ruanjinjie

There is no need to call the DRM_DEV_ERROR() function directly to print
a custom message when handling an error from platform_get_irq() function
as it is going to display an appropriate error message
in case of a failure.

Signed-off-by: Ruan Jinjie <ruanjinjie@huawei.com>
---
 drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c | 1 -
 drivers/gpu/drm/msm/msm_gpu.c            | 1 -
 2 files changed, 2 deletions(-)

diff --git a/drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c b/drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c
index b6201ae5b42e..700df4040e9a 100644
--- a/drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c
+++ b/drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c
@@ -417,7 +417,6 @@ static int mdp4_kms_init(struct drm_device *dev)
 	irq = platform_get_irq(pdev, 0);
 	if (irq < 0) {
 		ret = irq;
-		DRM_DEV_ERROR(dev->dev, "failed to get irq: %d\n", ret);
 		goto fail;
 	}
 
diff --git a/drivers/gpu/drm/msm/msm_gpu.c b/drivers/gpu/drm/msm/msm_gpu.c
index 52db90e34ead..8a9bacc920eb 100644
--- a/drivers/gpu/drm/msm/msm_gpu.c
+++ b/drivers/gpu/drm/msm/msm_gpu.c
@@ -897,7 +897,6 @@ int msm_gpu_init(struct drm_device *drm, struct platform_device *pdev,
 	gpu->irq = platform_get_irq(pdev, 0);
 	if (gpu->irq < 0) {
 		ret = gpu->irq;
-		DRM_DEV_ERROR(drm->dev, "failed to get irq: %d\n", ret);
 		goto fail;
 	}
 
-- 
2.34.1


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

* Re: [PATCH -next] drm/msm: Remove redundant DRM_DEV_ERROR()
  2023-07-27 11:24 [PATCH -next] drm/msm: Remove redundant DRM_DEV_ERROR() Ruan Jinjie
@ 2023-08-02  9:35 ` Dmitry Baryshkov
  2023-08-02  9:55 ` Dmitry Baryshkov
  1 sibling, 0 replies; 3+ messages in thread
From: Dmitry Baryshkov @ 2023-08-02  9:35 UTC (permalink / raw)
  To: Ruan Jinjie, robdclark, quic_abhinavk, sean, marijn.suijten,
	airlied, daniel, quic_jesszhan, dri-devel, freedreno,
	linux-kernel

On 27/07/2023 14:24, Ruan Jinjie wrote:
> There is no need to call the DRM_DEV_ERROR() function directly to print
> a custom message when handling an error from platform_get_irq() function
> as it is going to display an appropriate error message
> in case of a failure.
> 
> Signed-off-by: Ruan Jinjie <ruanjinjie@huawei.com>
> ---
>   drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c | 1 -
>   drivers/gpu/drm/msm/msm_gpu.c            | 1 -
>   2 files changed, 2 deletions(-)

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>

-- 
With best wishes
Dmitry


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

* Re: [PATCH -next] drm/msm: Remove redundant DRM_DEV_ERROR()
  2023-07-27 11:24 [PATCH -next] drm/msm: Remove redundant DRM_DEV_ERROR() Ruan Jinjie
  2023-08-02  9:35 ` Dmitry Baryshkov
@ 2023-08-02  9:55 ` Dmitry Baryshkov
  1 sibling, 0 replies; 3+ messages in thread
From: Dmitry Baryshkov @ 2023-08-02  9:55 UTC (permalink / raw)
  To: robdclark, quic_abhinavk, sean, marijn.suijten, airlied, daniel,
	quic_jesszhan, dri-devel, freedreno, linux-kernel, Ruan Jinjie


On Thu, 27 Jul 2023 11:24:07 +0000, Ruan Jinjie wrote:
> There is no need to call the DRM_DEV_ERROR() function directly to print
> a custom message when handling an error from platform_get_irq() function
> as it is going to display an appropriate error message
> in case of a failure.
> 
> 

Applied, thanks!

[1/1] drm/msm: Remove redundant DRM_DEV_ERROR()
      https://gitlab.freedesktop.org/lumag/msm/-/commit/f09f5459bd85

Best regards,
-- 
Dmitry Baryshkov <dmitry.baryshkov@linaro.org>

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

end of thread, other threads:[~2023-08-02  9:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-27 11:24 [PATCH -next] drm/msm: Remove redundant DRM_DEV_ERROR() Ruan Jinjie
2023-08-02  9:35 ` Dmitry Baryshkov
2023-08-02  9:55 ` Dmitry Baryshkov

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).