summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVinod Koul <vinod.koul@intel.com>2014-11-04 16:25:15 +0530
committerMark Brown <broonie@kernel.org>2014-11-06 12:36:17 +0000
commit29e1812d761183a6dd27c53d1259169e9e7ba4e2 (patch)
treeec5b1cc29d37c5b89e3e98c74ecd9ed3e584705a
parent7b8ef67a0b1edb37957a2aa71a5c0bbbcf2694e9 (diff)
downloadop-kernel-dev-29e1812d761183a6dd27c53d1259169e9e7ba4e2.zip
op-kernel-dev-29e1812d761183a6dd27c53d1259169e9e7ba4e2.tar.gz
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 <dan.carpenter@oracle.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--sound/soc/intel/sst-atom-controls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/intel/sst-atom-controls.c b/sound/soc/intel/sst-atom-controls.c
index 309a8f3..90aa5c0 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",
OpenPOWER on IntegriCloud