Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Colin Ian King and committed by
Mark Brown
d349fd15 644115e8

-1
-1
sound/soc/soc-core.c
··· 2237 2237 card->num_dapm_routes); 2238 2238 if (ret < 0) { 2239 2239 if (card->disable_route_checks) { 2240 - ret = 0; 2241 2240 dev_info(card->dev, 2242 2241 "%s: disable_route_checks set, ignoring errors on add_routes\n", 2243 2242 __func__);