Commit 29e1812d authored by Vinod Koul's avatar Vinod Koul Committed by Mark Brown

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: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 7b8ef67a
...@@ -1351,7 +1351,7 @@ static int sst_map_modules_to_pipe(struct snd_soc_platform *platform) ...@@ -1351,7 +1351,7 @@ static int sst_map_modules_to_pipe(struct snd_soc_platform *platform)
int ret = 0; int ret = 0;
list_for_each_entry(w, &platform->component.card->widgets, list) { 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; struct sst_ids *ids = w->priv;
dev_dbg(platform->dev, "widget type=%d name=%s\n", dev_dbg(platform->dev, "widget type=%d name=%s\n",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment