diff options
author | Colin Ian King <colin.i.king@gmail.com> | 2024-11-13 13:08:07 +0000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2024-11-13 13:53:09 +0000 |
commit | fb5e67c9d03b4a65fd43acc18cbafffff15bd8f9 (patch) | |
tree | 0e45ccc83066d639b5ddb4fd3b4b48da0924c5d1 /sound/soc | |
parent | add2332795a648b62fd52356001287c015a59e80 (diff) | |
download | lwn-fb5e67c9d03b4a65fd43acc18cbafffff15bd8f9.tar.gz lwn-fb5e67c9d03b4a65fd43acc18cbafffff15bd8f9.zip |
ASoC: SOF: ipc4-topology: remove redundant assignment to variable ret
The variable ret is being assigned a zero value however the value is
never read because ret is being re-assigned later after the end of
the switch statement. The assignment is redundant and can be removed.
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Link: https://patch.msgid.link/20241113130807.1386754-1-colin.i.king@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc')
-rw-r--r-- | sound/soc/sof/ipc4-topology.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sound/soc/sof/ipc4-topology.c b/sound/soc/sof/ipc4-topology.c index 56427d6e3679..624f52d2183c 100644 --- a/sound/soc/sof/ipc4-topology.c +++ b/sound/soc/sof/ipc4-topology.c @@ -755,7 +755,6 @@ static int sof_ipc4_widget_setup_comp_dai(struct snd_sof_widget *swidget) * It is fine to call kfree(ipc4_copier->copier_config) since * ipc4_copier->copier_config is null. */ - ret = 0; break; } |