]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ASoC: Intel: mrfld - remove unnecessary check for pointer
authorVinod Koul <vinod.koul@intel.com>
Tue, 4 Nov 2014 10:55:15 +0000 (16:25 +0530)
committerMark Brown <broonie@kernel.org>
Thu, 6 Nov 2014 12:36:17 +0000 (12:36 +0000)
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>
sound/soc/intel/sst-atom-controls.c

index 309a8f31428bbc21b6590185e6abaa8c37992776..90aa5c0476f3ec2feb111ff1f6d2a8fa67533d41 100644 (file)
@@ -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",