From: Vinod Koul Date: Tue, 4 Nov 2014 10:55:15 +0000 (+0530) Subject: ASoC: Intel: mrfld - remove unnecessary check for pointer X-Git-Tag: firefly_0821_release~176^2~2610^2~38^2~16^3~15 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=29e1812d761183a6dd27c53d1259169e9e7ba4e2;p=firefly-linux-kernel-4.4.55.git ASoC: Intel: mrfld - remove unnecessary check for pointer the 'platform' pointer in sst_map_modules_to_pipe() is deref in caller function so we need to check for it in this function Reported-by: Dan Carpenter Signed-off-by: Vinod Koul Signed-off-by: Mark Brown --- diff --git a/sound/soc/intel/sst-atom-controls.c b/sound/soc/intel/sst-atom-controls.c index 309a8f31428b..90aa5c0476f3 100644 --- a/sound/soc/intel/sst-atom-controls.c +++ b/sound/soc/intel/sst-atom-controls.c @@ -1351,7 +1351,7 @@ static int sst_map_modules_to_pipe(struct snd_soc_platform *platform) int ret = 0; list_for_each_entry(w, &platform->component.card->widgets, list) { - if (platform && is_sst_dapm_widget(w) && (w->priv)) { + if (is_sst_dapm_widget(w) && (w->priv)) { struct sst_ids *ids = w->priv; dev_dbg(platform->dev, "widget type=%d name=%s\n",