[alsa-devel] [PATCH resend 06/11] ASoC: soc-core: soc_cleanup_card_resources() become void
Kuninori Morimoto
kuninori.morimoto.gx at renesas.com
Tue Aug 20 07:05:10 CEST 2019
From: Kuninori Morimoto <kuninori.morimoto.gx at renesas.com>
There is no need to check return value for
soc_cleanup_card_resources(). Let't makes it as void.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx at renesas.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan at linux.intel.com>
---
v2 -> v3
- add Ranjani's Reviewed-by
sound/soc/soc-core.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index 6862abd..6d2b744 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -1881,7 +1881,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) {
@@ -1902,8 +1902,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)
--
2.7.4
More information about the Alsa-devel
mailing list