mirror of https://gitee.com/openkylin/linux.git
ASoC: Intel: Skylake: remove useless cast
Detected with Coccinelle sound/soc/intel/skylake/skl-topology.c:3106:16-20: WARNING: casting value returned by memory allocation function to (char *) is useless. Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
5489e81f98
commit
431b67c27c
|
@ -3103,7 +3103,7 @@ static int skl_init_algo_data(struct device *dev, struct soc_bytes_ext *be,
|
|||
ac->size = dfw_ac->max;
|
||||
|
||||
if (ac->max) {
|
||||
ac->params = (char *) devm_kzalloc(dev, ac->max, GFP_KERNEL);
|
||||
ac->params = devm_kzalloc(dev, ac->max, GFP_KERNEL);
|
||||
if (!ac->params)
|
||||
return -ENOMEM;
|
||||
|
||||
|
|
Loading…
Reference in New Issue