1
0
Fork 0
alistair23-linux/drivers/staging/media
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
..
allegro-dvt staging: Remove dev_err() usage after platform_get_irq() 2019-07-30 20:50:04 +02:00
bcm2048 media: staging/media: set device_caps in struct video_device 2019-06-05 08:49:11 -04:00
davinci_vpfe media: staging: davinci: fix memory leaks and check for allocation failure 2019-06-21 16:19:54 -04:00
hantro staging: Remove dev_err() usage after platform_get_irq() 2019-07-30 20:50:04 +02:00
imx staging: Remove dev_err() usage after platform_get_irq() 2019-07-30 20:50:04 +02:00
ipu3 media: v4l2: Get rid of ->vidioc_enum_fmt_vid_{cap, out}_mplane 2019-06-05 07:48:32 -04:00
meson/vdec staging: Remove dev_err() usage after platform_get_irq() 2019-07-30 20:50:04 +02:00
omap4iss staging: Remove dev_err() usage after platform_get_irq() 2019-07-30 20:50:04 +02:00
soc_camera media: staging: media: fix style problem 2019-06-24 13:08:02 -04:00
sunxi staging: Remove dev_err() usage after platform_get_irq() 2019-07-30 20:50:04 +02:00
tegra-vde media: staging: media: tegra-vde: Defer dmabuf's unmapping 2019-06-24 15:06:17 -04:00
Kconfig media: rockchip/vpu: rename from rockchip to hantro 2019-06-12 10:30:45 -04:00
Makefile media: rockchip/vpu: rename from rockchip to hantro 2019-06-12 10:30:45 -04:00