diff options
author | Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> | 2018-12-17 01:49:02 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-01-03 19:34:07 +0300 |
commit | 431b67c27c57bc6a752482727c87f6dda988aae5 (patch) | |
tree | a7f4c4d0c1e57ce60b3011ff652dd5349201962d /sound | |
parent | 5489e81f981b1fb7c2fdaba332122fff3290e9a4 (diff) | |
download | linux-431b67c27c57bc6a752482727c87f6dda988aae5.tar.xz |
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>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/intel/skylake/skl-topology.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/intel/skylake/skl-topology.c b/sound/soc/intel/skylake/skl-topology.c index cf8848b779dc..389f1862bc43 100644 --- a/sound/soc/intel/skylake/skl-topology.c +++ b/sound/soc/intel/skylake/skl-topology.c @@ -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; |