ASoC: topology: Check soc_tplg_add_route return value
authorAmadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Fri, 27 Mar 2020 20:47:27 +0000 (16:47 -0400)
committerMark Brown <broonie@kernel.org>
Thu, 9 Apr 2020 11:46:06 +0000 (12:46 +0100)
commit6856e887eae3efc0fe56899cb3f969fe063171c5
treeea48a82261be5dc7fdea1b6a6c283cc34ac87144
parent2ae548f30d7f6973388fc3769bb3c2f6fd13652b
ASoC: topology: Check soc_tplg_add_route return value

Function soc_tplg_add_route can propagate error code from callback, we
should check its return value and handle fail in correct way.

Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20200327204729.397-5-amadeuszx.slawinski@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-topology.c