浏览代码

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: 87b2bdf02278 ("ASoC: Intel: Skylake: Initialize NHLT table")
Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com>
Acked-By: Vinod Koul <vinod.kou@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Wei Yongjun 9 年之前
父节点
当前提交
979cf59acc
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      sound/soc/intel/skylake/skl.c

+ 3 - 1
sound/soc/intel/skylake/skl.c

@@ -672,8 +672,10 @@ static int skl_probe(struct pci_dev *pci,
 
 
 	skl->nhlt = skl_nhlt_init(bus->dev);
 	skl->nhlt = skl_nhlt_init(bus->dev);
 
 
-	if (skl->nhlt == NULL)
+	if (skl->nhlt == NULL) {
+		err = -ENODEV;
 		goto out_free;
 		goto out_free;
+	}
 
 
 	skl_nhlt_update_topology_bin(skl);
 	skl_nhlt_update_topology_bin(skl);