提交 979cf59a 编写于 作者: W Wei Yongjun 提交者: Mark Brown

ASoC: Intel: Skylake: Fix error return code in skl_probe()

Fix to return error code -ENODEV from the error handling
case instead of 0, as done elsewhere in this function.

Fixes: 87b2bdf0 ("ASoC: Intel: Skylake: Initialize NHLT table")
Signed-off-by: NWei Yongjun <weiyj.lk@gmail.com>
Acked-By: NVinod Koul <vinod.kou@intel.com>
Signed-off-by: NMark Brown <broonie@kernel.org>
上级 2392f7fd
......@@ -672,8 +672,10 @@ static int skl_probe(struct pci_dev *pci,
skl->nhlt = skl_nhlt_init(bus->dev);
if (skl->nhlt == NULL)
if (skl->nhlt == NULL) {
err = -ENODEV;
goto out_free;
}
skl_nhlt_update_topology_bin(skl);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册