Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 979cf59a authored by Wei Yongjun's avatar Wei Yongjun Committed by Mark Brown
Browse files

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: default avatarWei Yongjun <weiyj.lk@gmail.com>
Acked-By: default avatarVinod Koul <vinod.kou@intel.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 2392f7fd
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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);