Skip to content

Commit

Permalink
ASoC: Intel: Skylake: Fix error return code in skl_probe()
Browse files Browse the repository at this point in the history
Fix to return error code -ENODEV from the error handling
case instead of 0, as done elsewhere in this function.

Fixes: 87b2bdf ("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>
  • Loading branch information
weiyj authored and broonie committed Aug 12, 2016
1 parent 2392f7f commit 979cf59
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sound/soc/intel/skylake/skl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 979cf59

Please sign in to comment.