alistair23-linux/drivers/staging/media/hantro
Stephen Boyd 04d15d5cad staging: 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).

Signed-off-by: Stephen Boyd <swboyd@chromium.org>
Link: https://lore.kernel.org/r/20190730181557.90391-43-swboyd@chromium.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-07-30 20:50:04 +02:00
..
hantro.h media: hantro: allow arbitrary number of clocks 2019-06-12 10:41:03 -04:00
hantro_drv.c staging: Remove dev_err() usage after platform_get_irq() 2019-07-30 20:50:04 +02:00
hantro_g1_mpeg2_dec.c
hantro_g1_regs.h
hantro_h1_jpeg_enc.c
hantro_h1_regs.h
hantro_hw.h
hantro_jpeg.c
hantro_jpeg.h
hantro_mpeg2.c
hantro_v4l2.c media: hantro: remove an unnecessary NULL check 2019-06-21 16:19:06 -04:00
hantro_v4l2.h
Kconfig
Makefile
rk3288_vpu_hw.c media: hantro: allow arbitrary number of clocks 2019-06-12 10:41:03 -04:00
rk3399_vpu_hw.c media: hantro: allow arbitrary number of clocks 2019-06-12 10:41:03 -04:00
rk3399_vpu_hw_jpeg_enc.c
rk3399_vpu_hw_mpeg2_dec.c
rk3399_vpu_regs.h
TODO