]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: topology: Remove superfluous error prints
authorAmadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Wed, 12 Jan 2022 17:00:28 +0000 (18:00 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 24 Jan 2022 13:31:20 +0000 (13:31 +0000)
commit0c393551dfdce3e9cb37e20681f6dfcb4d1ab920
treebe03140d8736ab5afea314f0b39353b0825bfc76
parent258c2df04fcd60154fa5bc19b3300743780bf60d
ASoC: topology: Remove superfluous error prints

soc_tplg_check_elem_count(), already prints an error when applicable, so
there is no need to print another one.

Also clean up alignment of arguments in if, so there is no confusion
about what is checked and what is executed if condition is true.

Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Reviewed-by: Cezary Rojewski <cezary.rojewski@intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20220112170030.569712-2-amadeuszx.slawinski@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-topology.c