aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorColin Ian King <colin.i.king@gmail.com>2024-12-17 17:11:51 +0000
committerMark Brown <broonie@kernel.org>2024-12-17 17:32:33 +0000
commitd349fd151f1aeb0d8aea4a2f0fe9ba24309609ed (patch)
tree152e0c1d14d49b8f231404dd69b1bf588ba2189a
parentfirmware: cs_dsp: Fix endianness conversion in cs_dsp_mock_wmfw.c (diff)
downloadwireguard-linux-d349fd151f1aeb0d8aea4a2f0fe9ba24309609ed.tar.xz
wireguard-linux-d349fd151f1aeb0d8aea4a2f0fe9ba24309609ed.zip
ASoC: soc-core: remove redundant assignment to variable ret
The variable ret is being assigned a zero value that is never read, it is being re-assigned a new value from the return value from the call to snd_soc_dapm_add_routes. The assignment is redundant and can be removed. Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Link: https://patch.msgid.link/20241217171151.354550-1-colin.i.king@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to '')
-rw-r--r--sound/soc/soc-core.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index c8b7f78b02f0..710c278e4f36 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -2237,7 +2237,6 @@ static int snd_soc_bind_card(struct snd_soc_card *card)
card->num_dapm_routes);
if (ret < 0) {
if (card->disable_route_checks) {
- ret = 0;
dev_info(card->dev,
"%s: disable_route_checks set, ignoring errors on add_routes\n",
__func__);