]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Intel: Skylake: Fix to cleanup if skl_sst_dsp_init fails
authorSubhransu S. Prusty <subhransu.s.prusty@intel.com>
Fri, 30 Oct 2015 15:04:19 +0000 (20:34 +0530)
committerMark Brown <broonie@kernel.org>
Mon, 16 Nov 2015 10:08:09 +0000 (10:08 +0000)
commit287912232335663264822d33170c45c05d76d0dd
tree623e99c83eed66565816f7169dce231595f50dc6
parent53cdb8d69126670e0996bddaf9815c14acb9c642
ASoC: Intel: Skylake: Fix to cleanup if skl_sst_dsp_init fails

This patch fixes the below warning reported by Dan by invoking
skl_sst_dsp_cleanup() in cleanup path on error and not bailing out

sound/soc/intel/skylake/skl-sst.c:270 skl_sst_dsp_init()
info: ignoring unreachable code.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Subhransu S. Prusty <subhransu.s.prusty@intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/skylake/skl-sst.c