aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/intel
diff options
context:
space:
mode:
authorAlan Cox <alan@linux.intel.com>2016-02-22 09:37:27 +0530
committerMark Brown <broonie@kernel.org>2016-02-22 13:45:55 +0900
commitedd7ea2d5486c12978fdc71c6efd493cbabeea60 (patch)
tree2f8a6d3b266bc9b7599f3989ac34f0f067485f3c /sound/soc/intel
parentASoC: cht_bsw_rt5645: Enable jack detection (diff)
downloadlinux-dev-edd7ea2d5486c12978fdc71c6efd493cbabeea60.tar.xz
linux-dev-edd7ea2d5486c12978fdc71c6efd493cbabeea60.zip
ASoC: Intel: Skylake: remove bogus comparison of an array with NULL
dfw_ac->params is an array not a pointer. It will never be NULL. The check on ac->max appears sufficient. Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel')
-rw-r--r--sound/soc/intel/skylake/skl-topology.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/intel/skylake/skl-topology.c b/sound/soc/intel/skylake/skl-topology.c
index ba0d02d1613e..c95bbce8ad5d 100644
--- a/sound/soc/intel/skylake/skl-topology.c
+++ b/sound/soc/intel/skylake/skl-topology.c
@@ -1657,8 +1657,7 @@ static int skl_init_algo_data(struct device *dev, struct soc_bytes_ext *be,
if (!ac->params)
return -ENOMEM;
- if (dfw_ac->params)
- memcpy(ac->params, dfw_ac->params, ac->max);
+ memcpy(ac->params, dfw_ac->params, ac->max);
}
be->dobj.private = ac;