Skip to content

Commit 7f3c51f

Browse files
committed
ASoC: Intel: atom: controls: remove useless initializations
cppcheck complains about invalid NULL dereferences but there's indeed no need to initialize loop variables or before allocating memory. Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
1 parent 24aa8ab commit 7f3c51f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sound/soc/intel/atom/sst-atom-controls.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1328,7 +1328,7 @@ int sst_send_pipe_gains(struct snd_soc_dai *dai, int stream, int mute)
13281328
{
13291329
struct sst_data *drv = snd_soc_dai_get_drvdata(dai);
13301330
struct snd_soc_dapm_widget *w;
1331-
struct snd_soc_dapm_path *p = NULL;
1331+
struct snd_soc_dapm_path *p;
13321332

13331333
dev_dbg(dai->dev, "enter, dai-name=%s dir=%d\n", dai->name, stream);
13341334

@@ -1392,7 +1392,7 @@ int sst_send_pipe_gains(struct snd_soc_dai *dai, int stream, int mute)
13921392
static int sst_fill_module_list(struct snd_kcontrol *kctl,
13931393
struct snd_soc_dapm_widget *w, int type)
13941394
{
1395-
struct sst_module *module = NULL;
1395+
struct sst_module *module;
13961396
struct snd_soc_component *c = snd_soc_dapm_to_component(w->dapm);
13971397
struct sst_ids *ids = w->priv;
13981398
int ret = 0;

0 commit comments

Comments
 (0)