Commit edd7ea2d authored by Alan Cox's avatar Alan Cox Committed by Mark Brown

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: default avatarAlan Cox <alan@linux.intel.com>
Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 2303b32f
...@@ -1657,8 +1657,7 @@ static int skl_init_algo_data(struct device *dev, struct soc_bytes_ext *be, ...@@ -1657,8 +1657,7 @@ static int skl_init_algo_data(struct device *dev, struct soc_bytes_ext *be,
if (!ac->params) if (!ac->params)
return -ENOMEM; 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; be->dobj.private = ac;
......
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