Skip to content

Commit f3ece0d

Browse files
bardliaoujfalusi
authored andcommitted
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 dffff29 commit f3ece0d

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

sound/soc/sof/topology.c

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

2510-
if (ret < 0) {
2510+
if (ret < 0)
25112511
dev_err(scomp->dev, "error: tplg component load failed %d\n",
25122512
ret);
2513-
ret = -EINVAL;
2514-
}
25152513

25162514
release_firmware(fw);
25172515

0 commit comments

Comments
 (0)