src: drop wrong type-casts to match cache annotations

No need for type-casting: void * is compatible with any pointers and
both pointers already have the __sparse_cache annotation. Dropping it
causes sparse warnings.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
This commit is contained in:
Guennadi Liakhovetski 2023-04-21 17:19:47 +02:00 committed by Ranjani Sridharan
parent 6f96d0f37e
commit d604a3242d
1 changed files with 3 additions and 6 deletions

View File

@ -965,18 +965,15 @@ static int src_process(struct processing_module *mod,
{
struct comp_data *cd = module_get_private_data(mod);
struct comp_dev *dev = mod->dev;
struct audio_stream __sparse_cache *source_c, *sink_c;
/* src component needs 1 source and 1 sink buffer */
struct audio_stream __sparse_cache *source_c = input_buffers[0].data;
struct audio_stream __sparse_cache *sink_c = output_buffers[0].data;
int consumed = 0;
int produced = 0;
int ret;
comp_dbg(dev, "src_process()");
/* src component needs 1 source and 1 sink buffer */
source_c = (struct audio_stream *)input_buffers[0].data;
sink_c = (struct audio_stream *)output_buffers[0].data;
ret = src_get_copy_limits(cd, source_c, sink_c);
if (ret) {
comp_dbg(dev, "No data to process.");