]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Intel: Skylake: Fix uninitialized return
authorSubhransu S. Prusty <subhransu.s.prusty@intel.com>
Wed, 23 Aug 2017 14:07:12 +0000 (19:37 +0530)
committerMark Brown <broonie@kernel.org>
Wed, 23 Aug 2017 15:50:21 +0000 (16:50 +0100)
commit7188d4ff6b611f883f606f55bd02cb9362f40eb0
treeb3ed3a6c0985dd2a29ba9dbbcdbdb898ee782486
parentabb9db26de555e53a842c18ba3ca4deb7be79958
ASoC: Intel: Skylake: Fix uninitialized return

On failure to get dsp_ops, dsp_init returns error without assigning ret. ret
is assigned in code path which will never be executed. Fix it.

Fixes: a49a0d7fddd6 ("ASoC: Intel: Skylake: Fix to free resources for dsp_init failure"
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Subhransu S. Prusty <subhransu.s.prusty@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/skylake/skl-messages.c