alistair23-linux/drivers/staging/media/omap4iss
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
..
iss.c staging: Remove dev_err() usage after platform_get_irq() 2019-07-30 20:50:04 +02:00
iss.h media: staging: media: omap4iss: Added SPDX license identifiers 2018-09-12 08:27:15 -04:00
iss_csi2.c media: staging: fix several typos 2019-03-01 09:47:24 -05:00
iss_csi2.h media: staging: media: omap4iss: Added SPDX license identifiers 2018-09-12 08:27:15 -04:00
iss_csiphy.c media: staging: media: omap4iss: Added SPDX license identifiers 2018-09-12 08:27:15 -04:00
iss_csiphy.h media: staging: media: omap4iss: Added SPDX license identifiers 2018-09-12 08:27:15 -04:00
iss_ipipe.c media: staging: media: omap4iss: Added SPDX license identifiers 2018-09-12 08:27:15 -04:00
iss_ipipe.h media: staging: media: omap4iss: Added SPDX license identifiers 2018-09-12 08:27:15 -04:00
iss_ipipeif.c media: staging: media: omap4iss: Added SPDX license identifiers 2018-09-12 08:27:15 -04:00
iss_ipipeif.h media: staging: media: omap4iss: Added SPDX license identifiers 2018-09-12 08:27:15 -04:00
iss_regs.h media: staging: media: omap4iss: Added SPDX license identifiers 2018-09-12 08:27:15 -04:00
iss_resizer.c media: staging: media: omap4iss: Added SPDX license identifiers 2018-09-12 08:27:15 -04:00
iss_resizer.h media: staging: media: omap4iss: Added SPDX license identifiers 2018-09-12 08:27:15 -04:00
iss_video.c media: staging/media: set device_caps in struct video_device 2019-06-05 08:49:11 -04:00
iss_video.h media: staging: media: omap4iss: Added SPDX license identifiers 2018-09-12 08:27:15 -04:00
Kconfig media: Kconfig files: use the right help coding style 2019-03-20 06:47:51 -04:00
Makefile media: staging: media: omap4iss: Added SPDX license identifiers 2018-09-12 08:27:15 -04:00
TODO [media] v4l: omap4iss: Enable driver compilation as a module 2015-07-06 08:25:51 -03:00