diff options
author | Alan Cox <alan@linux.intel.com> | 2016-02-22 09:37:27 +0530 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-02-22 13:45:55 +0900 |
commit | edd7ea2d5486c12978fdc71c6efd493cbabeea60 (patch) | |
tree | 2f8a6d3b266bc9b7599f3989ac34f0f067485f3c /sound/soc/intel/skylake | |
parent | 2303b32f54289267adb75437cdeba50be92221f5 (diff) |
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/skylake')
-rw-r--r-- | sound/soc/intel/skylake/skl-topology.c | 3 |
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; |