ASoC: SOF: topology: remove unused variable
authorRanjani Sridharan <ranjani.sridharan@linux.intel.com>
Tue, 12 Jul 2022 12:39:02 +0000 (15:39 +0300)
committerMark Brown <broonie@kernel.org>
Tue, 12 Jul 2022 12:45:08 +0000 (13:45 +0100)
'ret' is never used. Remove it and return 0 instead.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Link: https://lore.kernel.org/r/20220712123902.14696-1-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/topology.c

index 7e54eb1..9273a70 100644 (file)
@@ -1419,7 +1419,6 @@ static int sof_widget_unload(struct snd_soc_component *scomp,
        struct soc_bytes_ext *sbe;
        struct snd_sof_dai *dai;
        struct soc_enum *se;
-       int ret = 0;
        int i;
 
        swidget = dobj->private;
@@ -1480,7 +1479,7 @@ out:
        list_del(&swidget->list);
        kfree(swidget);
 
-       return ret;
+       return 0;
 }
 
 /*