ASoC: SOF: topology: remove const in sizeof()
We should only use the type, the const attribute makes no sense in sizeof(). Reported-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com> Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com> Reviewed-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com> Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com> Acked-by: Jaroslav Kysela <perex@perex.cz> Tested-by: Jaroslav Kysela <perex@perex.cz> Link: https://lore.kernel.org/r/20200930152026.3902186-3-kai.vehmanen@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
5027fe3603
commit
3381a989a9
|
@ -1201,7 +1201,7 @@ static int sof_control_load_bytes(struct snd_soc_component *scomp,
|
|||
ret = -EINVAL;
|
||||
goto out_free;
|
||||
}
|
||||
if (cdata->data->size + sizeof(const struct sof_abi_hdr) !=
|
||||
if (cdata->data->size + sizeof(struct sof_abi_hdr) !=
|
||||
le32_to_cpu(control->priv.size)) {
|
||||
dev_err(scomp->dev,
|
||||
"error: Conflict in bytes vs. priv size.\n");
|
||||
|
|
Loading…
Reference in New Issue