linux_dsm_epyc7002/drivers/media/platform/sti/hva
Stephen Boyd 97299a3035 media: Remove dev_err() usage after platform_get_irq()
We don't need dev_err() messages when platform_get_irq() fails now that
platform_get_irq() prints an error message itself when something goes
wrong. Let's remove these prints with a simple semantic patch.

// <smpl>
@@
expression ret;
struct platform_device *E;
@@

ret =
(
platform_get_irq(E, ...)
|
platform_get_irq_byname(E, ...)
);

if ( \( ret < 0 \| ret <= 0 \) )
{
(
-if (ret != -EPROBE_DEFER)
-{ ...
-dev_err(...);
-... }
|
...
-dev_err(...);
)
...
}
// </smpl>

While we're here, remove braces on if statements that only have one
statement (manually).

Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Stephen Boyd <swboyd@chromium.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2019-08-07 17:08:33 -03:00
..
hva-debugfs.c media: platform: sti: remove bdisp_dbg_declare() and hva_dbg_declare() 2019-01-21 15:41:17 -02:00
hva-h264.c media: platform: fix several typos 2019-03-01 09:35:21 -05:00
hva-hw.c media: Remove dev_err() usage after platform_get_irq() 2019-08-07 17:08:33 -03:00
hva-hw.h media: platform: sti: Adopt SPDX identifier 2017-12-13 09:54:41 -05:00
hva-mem.c media: st-hva: don't use GFP_DMA 2018-05-25 15:35:41 -04:00
hva-mem.h media: platform: sti: Adopt SPDX identifier 2017-12-13 09:54:41 -05:00
hva-v4l2.c media: sti: Use vb2_get_buffer 2019-06-21 16:25:39 -04:00
hva.h media: fix usage of whitespaces and on indentation 2018-01-04 13:12:01 -05:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00