ASoC: Intel: kbl_da7219_max98927: test return value on route add
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Mon, 13 Jan 2020 21:04:16 +0000 (15:04 -0600)
committerMark Brown <broonie@kernel.org>
Tue, 14 Jan 2020 15:28:11 +0000 (15:28 +0000)
commit2b66c70fbe64c8fd47abd62e601f2405c7810f04
tree72a208d2ce68ca70a22b37875236028ddabafbb6
parent2e539cf72a349bb593718f7f500c96dcfc23d911
ASoC: Intel: kbl_da7219_max98927: test return value on route add

Fix cppcheck warning:

[sound/soc/intel/boards/kbl_da7219_max98927.c:340] ->
[sound/soc/intel/boards/kbl_da7219_max98927.c:348]: (style) Variable
'ret' is reassigned a value before the old one has been used.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20200113210428.27457-7-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/kbl_da7219_max98927.c