* [PATCH] drm/fsl-dcu: Remove redundant dev_err()
@ 2024-09-18 7:48 Chen Ni
2024-09-20 16:16 ` Dmitry Baryshkov
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Chen Ni @ 2024-09-18 7:48 UTC (permalink / raw)
To: stefan, alison.wang, maarten.lankhorst, mripard, tzimmermann,
airlied, simona
Cc: dri-devel, linux-kernel, Chen Ni
There is no need to call the dev_err() 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: Chen Ni <nichen@iscas.ac.cn>
---
drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c b/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c
index ab6c0c6cd0e2..ad026d77a051 100644
--- a/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c
+++ b/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c
@@ -272,10 +272,8 @@ static int fsl_dcu_drm_probe(struct platform_device *pdev)
}
fsl_dev->irq = platform_get_irq(pdev, 0);
- if (fsl_dev->irq < 0) {
- dev_err(dev, "failed to get irq\n");
+ if (fsl_dev->irq < 0)
return fsl_dev->irq;
- }
fsl_dev->regmap = devm_regmap_init_mmio(dev, base,
&fsl_dcu_regmap_config);
--
2.25.1
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] drm/fsl-dcu: Remove redundant dev_err()
2024-09-18 7:48 [PATCH] drm/fsl-dcu: Remove redundant dev_err() Chen Ni
@ 2024-09-20 16:16 ` Dmitry Baryshkov
2024-10-06 8:26 ` Markus Elfring
2024-10-19 14:57 ` Dmitry Baryshkov
2 siblings, 0 replies; 4+ messages in thread
From: Dmitry Baryshkov @ 2024-09-20 16:16 UTC (permalink / raw)
To: Chen Ni
Cc: stefan, alison.wang, maarten.lankhorst, mripard, tzimmermann,
airlied, simona, dri-devel, linux-kernel
On Wed, Sep 18, 2024 at 03:48:41PM GMT, Chen Ni wrote:
> There is no need to call the dev_err() 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: Chen Ni <nichen@iscas.ac.cn>
> ---
> drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] drm/fsl-dcu: Remove redundant dev_err()
2024-09-18 7:48 [PATCH] drm/fsl-dcu: Remove redundant dev_err() Chen Ni
2024-09-20 16:16 ` Dmitry Baryshkov
@ 2024-10-06 8:26 ` Markus Elfring
2024-10-19 14:57 ` Dmitry Baryshkov
2 siblings, 0 replies; 4+ messages in thread
From: Markus Elfring @ 2024-10-06 8:26 UTC (permalink / raw)
To: Chen Ni, dri-devel, Alison Wang, David Airlie, Dmitry Baryshkov,
Maarten Lankhorst, Maxime Ripard, Simona Vetter, Stefan Agner,
Thomas Zimmermann
Cc: LKML
> There is no need to call the dev_err() 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.
Can such a change description become a bit nicer with an additional
imperative wording?
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v6.12-rc1#n94
Regards,
Markus
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] drm/fsl-dcu: Remove redundant dev_err()
2024-09-18 7:48 [PATCH] drm/fsl-dcu: Remove redundant dev_err() Chen Ni
2024-09-20 16:16 ` Dmitry Baryshkov
2024-10-06 8:26 ` Markus Elfring
@ 2024-10-19 14:57 ` Dmitry Baryshkov
2 siblings, 0 replies; 4+ messages in thread
From: Dmitry Baryshkov @ 2024-10-19 14:57 UTC (permalink / raw)
To: stefan, alison.wang, maarten.lankhorst, mripard, tzimmermann,
airlied, simona, Chen Ni
Cc: dri-devel, linux-kernel
On Wed, 18 Sep 2024 15:48:41 +0800, Chen Ni wrote:
> There is no need to call the dev_err() 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 to drm-misc-next, thanks!
[1/1] drm/fsl-dcu: Remove redundant dev_err()
commit: 4b173d34e35726d7727d3e5edc43bcab12654ab0
Best regards,
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-10-19 14:57 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-09-18 7:48 [PATCH] drm/fsl-dcu: Remove redundant dev_err() Chen Ni
2024-09-20 16:16 ` Dmitry Baryshkov
2024-10-06 8:26 ` Markus Elfring
2024-10-19 14:57 ` Dmitry Baryshkov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®