Skip to contentSkip to conversation

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

PATCH In review Wei Yongjun 2 participants 2 messages Aug 12, 2016

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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")
---
 sound/soc/intel/skylake/skl.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
sound/soc/intel/skylake/skl.c +3 -1
index a893ca1..2989c16 100644
@@ -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);
Acked-by on v1 1/1
#1 lore raw
Quoted 2 lines · Wei Yongjun

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

Signature · 1 line
~Vinod