]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
ASoC: SOF: ipc4-topology: remove redundant assignment to variable ret
authorColin Ian King <colin.i.king@gmail.com>
Wed, 13 Nov 2024 13:08:07 +0000 (13:08 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 13 Nov 2024 13:53:09 +0000 (13:53 +0000)
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>
sound/soc/sof/ipc4-topology.c

index 56427d6e36798b40402f24478aae5403cc770426..624f52d2183c0c2f60016982c48aa1706042010c 100644 (file)
@@ -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;
                }