Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit a4de83a3 authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Mark Brown
Browse files

ASoC: soc-core: soc_cleanup_card_resources() become void



There is no need to check return value for
soc_cleanup_card_resources(). Let't makes it as void.

Signed-off-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Reviewed-by: default avatarRanjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://lore.kernel.org/r/871rxg1lda.wl-kuninori.morimoto.gx@renesas.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent a33c0d16
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -1885,7 +1885,7 @@ static void soc_check_tplg_fes(struct snd_soc_card *card)
	}
}

static int soc_cleanup_card_resources(struct snd_soc_card *card)
static void soc_cleanup_card_resources(struct snd_soc_card *card)
{
	/* free the ALSA card at first; this syncs with pending operations */
	if (card->snd_card) {
@@ -1906,8 +1906,6 @@ static int soc_cleanup_card_resources(struct snd_soc_card *card)
	/* remove the card */
	if (card->remove)
		card->remove(card);

	return 0;
}

static int snd_soc_instantiate_card(struct snd_soc_card *card)