Skip to content

Commit

Permalink
ASoC: SOF: topology: don't convert error code
Browse files Browse the repository at this point in the history
No need to convert the return value of snd_soc_tplg_component_load().

Signed-off-by: Bard Liao <[email protected]>
  • Loading branch information
bardliao committed Dec 13, 2024
1 parent 9e958d6 commit 7c8cf93
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions sound/soc/sof/topology.c
Original file line number Diff line number Diff line change
Expand Up @@ -2486,11 +2486,9 @@ int snd_sof_load_topology(struct snd_soc_component *scomp, const char *file)
else
ret = snd_soc_tplg_component_load(scomp, &sof_tplg_ops, fw);

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

release_firmware(fw);

Expand Down

0 comments on commit 7c8cf93

Please sign in to comment.