linux/sound/soc/mediatek/common
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
..
Makefile ASoC: Add missing newline at end of file 2019-06-17 16:18:13 +01:00
mtk-afe-fe-dai.c ASoC: Mediatek: MT8183: fix compile error 2019-05-21 19:58:20 +01:00
mtk-afe-fe-dai.h ASoC: mediatek: switch to SPDX license tag 2018-04-26 15:09:36 +01:00
mtk-afe-platform-driver.c ASoC: mediatek: Drop superfluous PCM preallocation error checks 2019-02-06 18:29:11 +01:00
mtk-afe-platform-driver.h ASoC: mt6797: combine DAI to register component 2018-05-25 18:34:48 +01:00
mtk-base-afe.h ASoC: Mediatek: add memory interface data align 2019-05-16 11:13:14 +01:00
mtk-btcvsd.c ASoC: Remove dev_err() usage after platform_get_irq() 2019-08-02 12:12:31 +01:00