OSDN Git Service

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)
commit3ce57f22cb23eefdf485589bbf675a30e72aeb45
treebe03140d8736ab5afea314f0b39353b0825bfc76
parent6cbff4b3a10e3ae5d68f71f197d0a0b14ef97711
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