ASoC: SOF: topology: (cosmetic) remove redundant variable initialisations
authorGuennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Mon, 24 Aug 2020 20:09:05 +0000 (15:09 -0500)
committerMark Brown <broonie@kernel.org>
Tue, 25 Aug 2020 19:39:33 +0000 (20:39 +0100)
Remove two cases of redundant variable initialisation.

Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20200824200912.46852-2-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/topology.c

index 13e10a0c0b05d84de50e65e4f15e16c75e82c03a..3b4e0908964327a953f21ef58f4c404dcc4bbf54 100644 (file)
@@ -2083,12 +2083,12 @@ static int sof_process_load(struct snd_soc_component *scomp, int index,
        struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(scomp);
        struct snd_soc_dapm_widget *widget = swidget->widget;
        struct snd_soc_tplg_private *private = &tw->priv;
-       struct sof_ipc_comp_process *process = NULL;
+       struct sof_ipc_comp_process *process;
        struct sof_widget_data *wdata = NULL;
        size_t ipc_data_size = 0;
        size_t ipc_size;
        int offset = 0;
-       int ret = 0;
+       int ret;
        int i;
 
        if (type == SOF_COMP_NONE) {