* [PATCH] media: coda: jpeg: fix platform_get_irq.cocci warnings
@ 2019-11-17 11:11 Julia Lawall
2019-12-12 11:12 ` Hans Verkuil
0 siblings, 1 reply; 3+ messages in thread
From: Julia Lawall @ 2019-11-17 11:11 UTC (permalink / raw)
To: Philipp Zabel; +Cc: linux-media, kernel, kbuild-all
From: kbuild test robot <lkp@intel.com>
Error report is redundant because platform_get_irq() already prints an
error
Generated by: scripts/coccinelle/api/platform_get_irq.cocci
Fixes: fb3a8aa62186 ("media: coda: jpeg: add CODA960 JPEG encoder support")
CC: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Julia Lawall <julia.lawall@lip6.fr>
---
The {} will need to be removed as well.
url: https://github.com/0day-ci/linux/commits/Philipp-Zabel/media-coda-do-not-skip-finish_run-if-aborting/20191114-025803
base: git://linuxtv.org/media_tree.git master
:::::: branch date: 4 days ago
:::::: commit date: 4 days ago
Please take the patch only if it's a positive warning. Thanks!
coda-common.c | 1 -
1 file changed, 1 deletion(-)
--- a/drivers/media/platform/coda/coda-common.c
+++ b/drivers/media/platform/coda/coda-common.c
@@ -3019,7 +3019,6 @@ static int coda_probe(struct platform_de
if (dev->devtype->product == CODA_960) {
irq = platform_get_irq_byname(pdev, "jpeg");
if (irq < 0) {
- dev_err(&pdev->dev, "failed to get jpeg irq resource\n");
return irq;
}
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] media: coda: jpeg: fix platform_get_irq.cocci warnings
2019-11-17 11:11 [PATCH] media: coda: jpeg: fix platform_get_irq.cocci warnings Julia Lawall
@ 2019-12-12 11:12 ` Hans Verkuil
2019-12-12 14:04 ` Philipp Zabel
0 siblings, 1 reply; 3+ messages in thread
From: Hans Verkuil @ 2019-12-12 11:12 UTC (permalink / raw)
To: Julia Lawall, Philipp Zabel; +Cc: linux-media, kernel, kbuild-all
Hi Julia,
On 11/17/19 12:11 PM, Julia Lawall wrote:
> From: kbuild test robot <lkp@intel.com>
>
> Error report is redundant because platform_get_irq() already prints an
> error
>
> Generated by: scripts/coccinelle/api/platform_get_irq.cocci
>
> Fixes: fb3a8aa62186 ("media: coda: jpeg: add CODA960 JPEG encoder support")
> CC: Philipp Zabel <p.zabel@pengutronix.de>
> Signed-off-by: kbuild test robot <lkp@intel.com>
> Signed-off-by: Julia Lawall <julia.lawall@lip6.fr>
> ---
>
> The {} will need to be removed as well.
>
> url: https://github.com/0day-ci/linux/commits/Philipp-Zabel/media-coda-do-not-skip-finish_run-if-aborting/20191114-025803
> base: git://linuxtv.org/media_tree.git master
> :::::: branch date: 4 days ago
> :::::: commit date: 4 days ago
>
> Please take the patch only if it's a positive warning. Thanks!
>
> coda-common.c | 1 -
> 1 file changed, 1 deletion(-)
>
> --- a/drivers/media/platform/coda/coda-common.c
> +++ b/drivers/media/platform/coda/coda-common.c
> @@ -3019,7 +3019,6 @@ static int coda_probe(struct platform_de
> if (dev->devtype->product == CODA_960) {
> irq = platform_get_irq_byname(pdev, "jpeg");
> if (irq < 0) {
> - dev_err(&pdev->dev, "failed to get jpeg irq resource\n");
> return irq;
> }
>
Can you remove the {} as well? Those are no longer needed/wanted after removing
the dev_err.
Thanks!
Hans
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] media: coda: jpeg: fix platform_get_irq.cocci warnings
2019-12-12 11:12 ` Hans Verkuil
@ 2019-12-12 14:04 ` Philipp Zabel
0 siblings, 0 replies; 3+ messages in thread
From: Philipp Zabel @ 2019-12-12 14:04 UTC (permalink / raw)
To: Hans Verkuil, Julia Lawall; +Cc: linux-media, kernel, kbuild-all
On Thu, 2019-12-12 at 12:12 +0100, Hans Verkuil wrote:
> Hi Julia,
>
> On 11/17/19 12:11 PM, Julia Lawall wrote:
> > From: kbuild test robot <lkp@intel.com>
> >
> > Error report is redundant because platform_get_irq() already prints an
> > error
> >
> > Generated by: scripts/coccinelle/api/platform_get_irq.cocci
> >
> > Fixes: fb3a8aa62186 ("media: coda: jpeg: add CODA960 JPEG encoder support")
> > CC: Philipp Zabel <p.zabel@pengutronix.de>
> > Signed-off-by: kbuild test robot <lkp@intel.com>
> > Signed-off-by: Julia Lawall <julia.lawall@lip6.fr>
> > ---
> >
> > The {} will need to be removed as well.
> >
> > url: https://github.com/0day-ci/linux/commits/Philipp-Zabel/media-coda-do-not-skip-finish_run-if-aborting/20191114-025803
> > base: git://linuxtv.org/media_tree.git master
> > :::::: branch date: 4 days ago
> > :::::: commit date: 4 days ago
> >
> > Please take the patch only if it's a positive warning. Thanks!
> >
> > coda-common.c | 1 -
> > 1 file changed, 1 deletion(-)
> >
> > --- a/drivers/media/platform/coda/coda-common.c
> > +++ b/drivers/media/platform/coda/coda-common.c
> > @@ -3019,7 +3019,6 @@ static int coda_probe(struct platform_de
> > if (dev->devtype->product == CODA_960) {
> > irq = platform_get_irq_byname(pdev, "jpeg");
> > if (irq < 0) {
> > - dev_err(&pdev->dev, "failed to get jpeg irq resource\n");
> > return irq;
> > }
> >
>
> Can you remove the {} as well? Those are no longer needed/wanted after removing
> the dev_err.
I have fixed this in v2.
regards
Philipp
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-12-12 14:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-11-17 11:11 [PATCH] media: coda: jpeg: fix platform_get_irq.cocci warnings Julia Lawall
2019-12-12 11:12 ` Hans Verkuil
2019-12-12 14:04 ` Philipp Zabel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox