]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Intel: mrfld: return error codes when an error occurs
authorColin Ian King <colin.king@canonical.com>
Sat, 8 Feb 2020 22:07:20 +0000 (22:07 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 11 Feb 2020 11:25:05 +0000 (11:25 +0000)
commitdffa07d6021708388339959b0ec789050e5caf88
treecc6c159983e8cf0ed6974c47571a74c099eca5f2
parentaa299077c6e919d224e20b9444ab5f47cade450d
ASoC: Intel: mrfld: return error codes when an error occurs

Currently function sst_platform_get_resources always returns zero and
error return codes set by the function are never returned. Fix this
by returning the error return code in variable ret rather than the
hard coded zero.

Addresses-Coverity: ("Unused value")
Fixes: 9d8f99b59663 ("ASoC: Intel: mrfld - create separate module for pci part")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Cezary Rojewski <cezary.rojewski@intel.com>
Acked-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20200208220720.36657-1-colin.king@canonical.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/atom/sst/sst_pci.c