linux/sound/soc/uniphier
Stephen Boyd cf9441adb1
ASoC: 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: Liam Girdwood <lgirdwood@gmail.com>
Cc: Mark Brown <broonie@kernel.org>
Cc: Jaroslav Kysela <perex@perex.cz>
Cc: Takashi Iwai <tiwai@suse.com>
Cc: alsa-devel@alsa-project.org
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Stephen Boyd <swboyd@chromium.org>
Link: https://lore.kernel.org/r/20190730181557.90391-50-swboyd@chromium.org
Signed-off-by: Mark Brown <broonie@kernel.org>
2019-08-02 12:12:31 +01:00
..
aio-compress.c ASoC: uniphier: remove boilerplate from lisence comment 2018-04-27 11:26:24 +01:00
aio-core.c ASoC: uniphier: change functions to static 2018-07-30 12:02:32 +01:00
aio-cpu.c ASoC: uniphier: remove redundant check of PLL ID 2018-06-22 15:46:31 +01:00
aio-dma.c ASoC: Remove dev_err() usage after platform_get_irq() 2019-08-02 12:12:31 +01:00
aio-ld11.c ASoC: uniphier: add support for multichannel output 2018-07-30 12:02:31 +01:00
aio-pxs2.c ASoC: uniphier: add support for UniPhier PXs2 AIO 2018-03-09 15:49:42 +00:00
aio-reg.h ASoC: uniphier: add support for multichannel output 2018-07-30 12:02:31 +01:00
aio.h ASoC: uniphier: change functions to static 2018-07-30 12:02:32 +01:00
evea.c ASoC: uniphier: evea: use devm_platform_ioremap_resource() to simplify code 2019-07-31 12:11:40 +01:00
Kconfig ASoC: uniphier: add support for UniPhier PXs2 AIO 2018-03-09 15:49:42 +00:00
Makefile ASoC: uniphier: add support for UniPhier PXs2 AIO 2018-03-09 15:49:42 +00:00