Skip to content

Commit 7c8cf93

Browse files
committed
ASoC: SOF: topology: don't convert error code
No need to convert the return value of snd_soc_tplg_component_load(). Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
1 parent 9e958d6 commit 7c8cf93

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

sound/soc/sof/topology.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2486,11 +2486,9 @@ int snd_sof_load_topology(struct snd_soc_component *scomp, const char *file)
24862486
else
24872487
ret = snd_soc_tplg_component_load(scomp, &sof_tplg_ops, fw);
24882488

2489-
if (ret < 0) {
2489+
if (ret < 0)
24902490
dev_err(scomp->dev, "error: tplg component load failed %d\n",
24912491
ret);
2492-
ret = -EINVAL;
2493-
}
24942492

24952493
release_firmware(fw);
24962494

0 commit comments

Comments
 (0)