diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2022-09-08 05:45:27 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-09-08 13:39:40 +0300 |
commit | 59a1063dcaa5c9450dc1d221679418747bf086fc (patch) | |
tree | 5c5c869fd63cc08a02566d7d9853424985dec892 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 6ef8443fb1ced148417d830894240a097ba79a03 (diff) | |
download | linux-59a1063dcaa5c9450dc1d221679418747bf086fc.tar.xz |
ASoC: soc-dapm.c: tidyup snd_soc_dai_link_event_pre_pmu()
snd_soc_dai_link_event_pre_pmu() is using if/else for config->formats
check, but "else" case is for just error.
Unnecessary if/else is not good for readable code. this patch checks
if config->formats was zero as error case.
Moreover, we don't need to indicate config->formats value in error message,
because it is zero. This patch tidyup it, too.
=> if (config->formats) {
...
} else {
dev_warn(w->dapm->dev, "ASoC: Invalid format %llx specified\n",
=> config->formats);
...
}
Link: https://lore.kernel.org/all/YxiDkDOwRsbXeZ17@sirena.org.uk/
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/877d2ebn3t.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions