ASoC: Intel: Skylake: remove useless cast
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Sun, 16 Dec 2018 22:49:02 +0000 (16:49 -0600)
committerMark Brown <broonie@kernel.org>
Thu, 3 Jan 2019 16:34:07 +0000 (16:34 +0000)
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>
sound/soc/intel/skylake/skl-topology.c

index cf8848b779dcc2a84a2c15a35d29ad49808a0692..389f1862bc43918489b4035146070a507599a54a 100644 (file)
@@ -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;