提交 9149916f 编写于 作者: S Subhransu S. Prusty 提交者: Mark Brown

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: f77d443c ("ASoC: Intel: Skylake: Fix to free resources for dsp_init failure"
Reported-by: Nkbuild test robot <fengguang.wu@intel.com>
Signed-off-by: NSubhransu S. Prusty <subhransu.s.prusty@intel.com>
Signed-off-by: NMark Brown <broonie@kernel.org>
上级 7b992c24
...@@ -278,8 +278,8 @@ int skl_init_dsp(struct skl *skl) ...@@ -278,8 +278,8 @@ int skl_init_dsp(struct skl *skl)
ops = skl_get_dsp_ops(skl->pci->device); ops = skl_get_dsp_ops(skl->pci->device);
if (!ops) { if (!ops) {
goto unmap_mmio;
ret = -EIO; ret = -EIO;
goto unmap_mmio;
} }
loader_ops = ops->loader_ops(); loader_ops = ops->loader_ops();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册