diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2022-06-21 16:58:34 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-06-22 13:39:34 +0100 |
commit | 1892a991886ace2c3450bec801df2cf4028a803a (patch) | |
tree | b4af83054099837ff653124affcf42b6f4a5b429 /sound/soc/fsl | |
parent | 644ed467c773ae7649cb54c9709aabc6f2984850 (diff) | |
download | linux-stable-1892a991886ace2c3450bec801df2cf4028a803a.tar.gz linux-stable-1892a991886ace2c3450bec801df2cf4028a803a.tar.bz2 linux-stable-1892a991886ace2c3450bec801df2cf4028a803a.zip |
ASoC: core: Make snd_soc_unregister_card() return void
The function snd_soc_unregister_card() returned 0 unconditionally and most
callers don't care to check the return value. Make it return void and
adapt the callers that didn't ignore the return value before.
This is a preparation for making platform remove callbacks return void.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20220621145834.198519-1-u.kleine-koenig@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/fsl')
-rw-r--r-- | sound/soc/fsl/pcm030-audio-fabric.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sound/soc/fsl/pcm030-audio-fabric.c b/sound/soc/fsl/pcm030-audio-fabric.c index 83b4a22bf15a..e4c805acc349 100644 --- a/sound/soc/fsl/pcm030-audio-fabric.c +++ b/sound/soc/fsl/pcm030-audio-fabric.c @@ -113,12 +113,11 @@ static int pcm030_fabric_probe(struct platform_device *op) static int pcm030_fabric_remove(struct platform_device *op) { struct pcm030_audio_data *pdata = platform_get_drvdata(op); - int ret; - ret = snd_soc_unregister_card(pdata->card); + snd_soc_unregister_card(pdata->card); platform_device_unregister(pdata->codec_device); - return ret; + return 0; } static const struct of_device_id pcm030_audio_match[] = { |