]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 21 Apr 2020 07:06:37 +0000 (09:06 +0200)
commitb887e9369d3b3cc37cef0ec6095eeaad1b66803a
treed1d41d9ea1fc728632ad00aba1cef0ac5e97b7a2
parent97684c062d8ebe0252cdb0549de3206d1577c6e1
ASoC: Intel: mrfld: return error codes when an error occurs

commit 3025571edd9df653e1ad649f0638368a39d1bbb5 upstream.

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: f533a035e4da ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/intel/atom/sst/sst_pci.c