Skip to content

Commit d349fd1

Browse files
ColinIanKingbroonie
authored andcommitted
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>
1 parent 644115e commit d349fd1

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

sound/soc/soc-core.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2237,7 +2237,6 @@ static int snd_soc_bind_card(struct snd_soc_card *card)
22372237
card->num_dapm_routes);
22382238
if (ret < 0) {
22392239
if (card->disable_route_checks) {
2240-
ret = 0;
22412240
dev_info(card->dev,
22422241
"%s: disable_route_checks set, ignoring errors on add_routes\n",
22432242
__func__);

0 commit comments

Comments
 (0)