buffer: remove redundant NULL check

calling_buf cannot be NULL in pipeline_comp_params_neg, don't check.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
This commit is contained in:
Guennadi Liakhovetski 2022-07-19 11:07:25 +02:00 committed by Liam Girdwood
parent 566415e642
commit fe688ddd5f
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ static int pipeline_comp_params_neg(struct comp_dev *current,
int dir)
{
struct pipeline_data *ppl_data = ctx->comp_data;
struct comp_buffer __sparse_cache *buf_c = calling_buf ? buffer_acquire(calling_buf) : NULL;
struct comp_buffer __sparse_cache *buf_c = buffer_acquire(calling_buf);
int err = 0;
pipe_dbg(current->pipeline, "pipeline_comp_params_neg(), current->comp.id = %u, dir = %u",